[Zope] Authenticated user in Session onAdd methods?
Juan Carlos CORUŅA
jcoruna@ibdosnorte.com
Fri, 30 Aug 2002 13:58:41 +0200
Hello zopistas,
I want to incluye some default values in a session data container when
it instantiates.
I created a python script that called when new session is created. The
problem is hat I need to know the user name in order to setup the
default session values.
For example:
sdo['UserName'] = <way to obtain the username>
I tried:
sdo['UserName'] = _.SecurityGetUser().getUserName()
and the result is always "Anonymous User" even if I am logged as an
authenticated user.
Thanks.
Juan Carlos Coruņa
jcoruna@ibdosnorte.com