SecurityGetUser and Python scripts
The DTML reference for the zope book has this tidbit: SecurityGetUser() Return the current user object. This is normally the same as the REQUEST.AUTHENTICATED_USER object. However, the AUTHENTICATED_USER object is insecure since it can be replaced. How would one access SecurityGetUser from a PythonScript? -- Steve Drees SysAdmin/Software Developer/Web Geek/Chief Bottle Washer "A problem well-stated is a problem half-solved." http://www.christianmp3zone.com/savanna
From: "Steve Drees" <drees@the-bridge.net>
How would one access SecurityGetUser from a PythonScript?
Bind the namespace (on the Bindings tab) to a name like 'ns', then say: ns.SecurityGetUser() In Zope 2.4, you will be able to import the security manager directly. There are other useful security methods defined in lib/python/AccessControl/DTML.py Cheers, Evan @ digicool & 4-am
participants (2)
-
Evan Simpson -
Steve Drees