[Zope] zopectl debug question
Jens Vagelpohl
jens at dataflake.org
Mon Oct 4 12:39:51 EDT 2004
On Oct 4, 2004, at 17:24, Jean Jordaan wrote:
> Hi all
>
> Does anyone know how I can "be someone" besides Anonymous when
> debugging Zope? This works:
You could do something like... (untested and from memory!)
>>> from AccessControl.SecurityManagement import newSecurityManager
>>> desired_user = app.acl_users.getUser('desired_user')
>>> newSecurityManager(desired_user)
>>> <now do whatever you want as desired_user>
jens
More information about the Zope
mailing list