Chris McDonough wrote:
How does this relate to sessioning?
Well, I was trying to store a DirectoryView object in the session so I could get to it easily from a multiple-frame page. Of course, this means the DriectoryView gets committed to a storage. Now DirectoryViews have FSPythonScripts as attributes, so I'm guessing that when the DirectoryView gets committed to the TemporaryStorage, the FSPythonScripts do as well. ...and apparently they don't like being pickled :-( Any ideas? cheers, Chris
trying to use the new sessioning in Zope 2.5.0b3 and get this:
UnpickleableError Sorry, a site error occurred.
Traceback (innermost last): File /usr/local/zope/2.5.0b3_base/lib/python/ZPublisher/Publish.py, line 151, in publish_module File /usr/local/zope/2.5.0b3_base/lib/python/ZPublisher/Publish.py, line 115, in publish File /usr/local/zope/2.5.0b3_base/lib/python/Zope/__init__.py, line 158, in zpublisher_exception_hook (Object: Live) File /usr/local/zope/2.5.0b3_base/lib/python/ZPublisher/Publish.py, line 103, in publish File /usr/local/zope/2.5.0b3_base/lib/python/Zope/__init__.py, line 172, in commit File /usr/local/zope/2.5.0b3_base/lib/python/ZODB/Transaction.py, line 233, in commit File /usr/local/zope/2.5.0b3_base/lib/python/ZODB/Connection.py, line 345, in commit (Info: (('Products.CMFCore.FSPythonScript', 'FSPythonScript'), '\x00\x00\x00\x00\x00\x00\x00!', '')) UnpickleableError: Cannot pickle <type 'code'> objects
Has anyone else experienced this?
More importantly, can anyone help with how we should find out what is actually going on here?
cheers,
Chris
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )