Frank Burkhardt wrote:
Hi,
when I search using a catalog, I get a list of persistent objects
but maybe there are objects among them, the calling user
doesn't have permissions for.
How do I check, if the current user (the one calling the view
which queries the catalog) is allowed to view an object?
zope.security.checker.canAccess and .canWrite
How do I change permissions of a persistent object in python
(not using the ZMI)?
from zope.app.securitypolicy.interfaces import IPrincipalPermissionManager
permissions = IPrincipalPermissionManager(context)
Regards,
Dominik
begin:vcard
fn:Dominik Huber
n:Huber;Dominik
email;internet:[EMAIL PROTECTED]
tel;work:++41 56 534 77 30
x-mozilla-html:FALSE
version:2.1
end:vcard
_______________________________________________
Zope3-users mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zope3-users