[Zope-DB] getUserName()

Andreas Jung lists at andreas-jung.com
Sat Mar 26 00:42:20 EST 2005



--On Freitag, 25. März 2005 22:18 Uhr +1100 miss <miss at telpacific.com.au> 
wrote:

> I am something of a newbie on zope.
> Have been attempting to use the getUserName()  object with a python
> script. My aim is to pass this result to a transaction file on Postgres.

Do you mean

from AccessControl import getSecurityManager
username = getSecurityManager().getUser().getUserName()

?

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-db/attachments/20050326/3f4f79a9/attachment.bin


More information about the Zope-DB mailing list