[Zope] zopectl debug question

Paul Winkler pw_lists at slinkp.com
Mon Oct 4 12:50:14 EDT 2004


On Mon, Oct 04, 2004 at 06:24:59PM +0200, Jean Jordaan wrote:
> Hmmm, now does anyone know how I can get hold of that user object
> so that I can try and make it __of__(portal)?

Something like this:

>>> from AccessControl.SecurityManagement import newSecurityManager
>>> user = portal.acl_users.getUser('joebob').__of__(portal.acl_users)
>>> newSecurityManager(None, user)
>>> getSecurityManager().getUser() # just to verify it.
joebob

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list