[Zope] SecurityGetUser and Python scripts

Evan Simpson evan@4-am.com
Mon, 30 Apr 2001 13:19:07 -0500


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