On Mon, Feb 19, 2001 at 03:43:18AM -0800, Kevin Teague wrote:
Security was increased for Zope 2.2. This document on Zope Security for Developers may be helpful: http://dev.zope.org/Wikis/DevSite/Projects/DeclarativeSecurity/ZopeSecurityF orDevelopers
Thanks for the pointer.
If you want to assign a proxy role to a DTML Method, the user you are logged in as must have that role. In the case of generating new local roles dynamically like you are, obviously no user will have that role. You can assign proxy roles to a DTML Method from your Python Product by messing with the _proxy_roles attribute, a tuple which contains all the proxy roles that that DTML Method has.
self._proxy_roles = ('unique_proxy_role',)
Neat trick! ;-) Cheers. -- Ng Pheng Siong <ngps@post1.com> * http://www.post1.com/home/ngps