[Zope] Problem with zsession_del_notify python script, event log transienceDestruct failed msg

Richard Ettema richard.ettema@yoursolutions.com
Thu, 10 Jul 2003 12:29:52 +0100


Hi,

Zope Version Zope 2.5.1
Python Version  2.1.3
System Platform  freebsd4
CMF Version 1.3

I have a python script that is setup in ZSESSION_DEL_NOTIFY to save some
info out of the session objects from visitors to a cmf site. I have seen the
"PROBLEM" event listed in the event log (shown below) on a regular basis.
Line 8 of the SessionCleanUp script does the following...

sess_cnt = sdo.get('sess_cnt', {})

sdo being the session object passed to the script via the parameter list.

This means the data I want isn't saved, correct? From
LowConflictConnection.py how would the session object being passed be None
(or the objects attr _storage?)? And how do I track it to find the problem?
Thanks for any pointers.

Richard

##### Event log msg appearing regularly #####
...

2003-07-10T01:50:29 PROBLEM(100) Transience notifyDestruct failed when
calling /GENERIC/sessionCleanUp in /temp_folder/session_data
Traceback (innermost last):
  File /usr/local/zope/2.5.1/lib/python/Products/Transience/Transience.py,
line 283, in _notify
    (Object: session_data)
  File /usr/local/zope/2.5.1/lib/python/Shared/DC/Scripts/Bindings.py, line
252, in __call__
    (Object: sessionCleanUp)
  File /usr/local/zope/2.5.1/lib/python/Shared/DC/Scripts/Bindings.py, line
283, in _bindAndExec
    (Object: sessionCleanUp)
  File
/usr/local/zope/2.5.1/lib/python/Products/PythonScripts/PythonScript.py,
line 302, in _exec
    (Object: sessionCleanUp)
  File Script (Python), line 8, in sessionCleanUp
  File
/usr/local/zope/2.5.1/lib/python/Products/TemporaryFolder/LowConflictConnect
ion.py, line 34, in setstate
AttributeError: 'None' object has no attribute 'load'

'''
#####
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.493 / Virus Database: 292 - Release Date: 25/06/03