[Zope-dev] Weird proxy role behaviour
Andreas Jung
lists at andreas-jung.com
Mon Jul 4 07:56:23 EDT 2005
Hi,
I created a PyScript through the ZMI:
from AccessControl import getSecurityManager()
print getSecurityManager().getUser().getRoles()
print getSecurityManager().getUser().getRolesInContext(context)
return printed
The script has the proxy role 'Manager'.
When I call the script as Anyonmous User then the output is always
('Anonymous',) for both calls. This happens with Zope 2.7.0, 2.7.6 and Zope
2.8.0. Shouldn't I see the Manager role in the output or am I just
brain-dead today?
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20050704/35a4a43c/attachment.bin
More information about the Zope-Dev
mailing list