[Zope] Session Management for keeping Python-Objects

Dieter Maurer dieter@handshake.de
Wed, 21 Nov 2001 23:35:07 +0100


Stephan Herschel writes:
 > I have an external method that returns a python-object to zope. Inside
 > zope i would like to be able to store the object as a session variable
 > in order to have access to this object inside one session. 
 > I have tried to do this using FSSession, but it's not able to pickle
 > objects to a file. Which session management product would you propose
 > for doing this?
This may be caused by defining your class inside the source
file containing the External Method. Such sources are not
treated as Python modules. Try to move your class definition
out in a real Python module (to be located in "shared/XXXX/your_module.py").

In principle, "FSSession" is able to pickle objects...


Dieter