[Product-Developers] [Plone 4] Caching actions of portal_tabs

Andreas Jung lists at zopyx.com
Fri Jan 27 11:33:54 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I have a custom action inside the portal_tabs action category
with a condition:

python: portal.restrictedTraverse('isAllowed')()

isAllowed() returns True/False for anonymous/non-anoymous users

There seems to be some caching of the portal_tabs actions since
the code of isAllowed is called across requests only *once*
and not every time...this caching appears stupid (and dangerous) - why
does it happen?

- -aj

- -- 
ZOPYX Limited           | zopyx group
Charlottenstr. 37/1     | The full-service network for Zope & Plone
D-72070 Tübingen        | Produce & Publish
www.zopyx.com           | www.produce-and-publish.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJPIouiAAoJEADcfz7u4AZjzeALvi4I8RTjeeI2BDNBDfmDY5gg
j6K73XcaM7++bTlnqfMyjCuX5llMoi0j1yx096gKxQBStJg68iH8VVbHWQS4IVOK
lib6CBTRdafnw4ghOJRaRkuPDH9sDaKoa/gTRO6uKuAATqsmPEi/RwnhrDgIXKTo
Jgw+6hPw8Yt9y/Fig3MxzzlkRlwBAFdVuqZuZK9S/BYlNoscbjdAgj16FiZxMGAy
JgV2rlr+BRG3f7KZFIUUKMDKEBCTWQ0n7h5EPNgHvJrjqkE6JCCbINh4aoJlKA5W
ZVNo8Ojya1URL/b4TGBK0FjTPswuDghF07Tlid4izZCBixKaXQZQmqixbkiE9E/H
D3SbJEca0HYj7YgMFh8NNCjDRcxas2UYP1nS7Tx5cgieDKseiTHEj+qvdURovu90
kjuWqcnQhJvzevM5bWjLo+9GO/rSHTja/nYCxNLxlfNK+z8sBHfQxoNp5JcDr9ec
T8q5uvKCtPM39ew0VsEE9vNWFcL7N8c=
=xDSo
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 310 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20120127/1358656e/attachment.vcf>


More information about the Product-Developers mailing list