Session Management for keeping Python-Objects
Hello, 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? Thanks for any input, stephan
Core Session Tracking, or wait for Zope 2.5 cheers, Chris Stephan Herschel wrote:
Hello,
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?
Thanks for any input, stephan
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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
participants (3)
-
Chris Withers -
Dieter Maurer -
Stephan Herschel