26 Oct
2003
26 Oct
'03
5:33 p.m.
Brad Clements wrote at 2003-10-26 11:39 -0500:
I want to be able to 'su' as another user within Zope if a PythonScript is called with valid REQUEST.form values.
Attached below is my extension method, which sorta works. The problem is that after I call newSecurityManager, the 'new user' doesn't have View rights to the User object, so calling getProperty() on it fails. I'm using LDAPUserFolder .... newUser = newUser.__of__(getattr(userFolder,'aq_base', userFolder))
Try "newUser= newUser.__of__(userFolder)". I am not sure, it will work but at least it is more correct than your version. -- Dieter