The onStart method will be called when a session data object
is created.
Neither of the calls you show here create a session data
object. Something
like Session.getSessionData() would, however.
Ah.
I read when a session starts, you may call an external method or
PythonScrip and thought
This onStart method...
sdo['date'] = context.ZopeTime()
...gives this error:
--
2001-04-23T14:36:32 PROBLEM(100) Session Tracking session event failed
The call to function onStart failed. Traceback:
Traceback (innermost last):
File
In the meantime, use the .set method of the session data
object, e.g. in the
onStart function:
sdo.set('Username', 'Foobar')
.. or use an external method.
Ok, works now. Thanks.
How to I access things like the DTML AUTHENTICATED_USER.getUserName() from a
python script?
/Magnus