[albatross-users] pickle problem

Luci Stanescu luci at wolfheart.ro
Sat Apr 30 01:15:32 EST 2005


I have a small application that keeps track of different documents. At
times, in any module of the application (ModularSessionApp), this error
is raised;

Template traceback (most recent call last):

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/albatross/app.py", line 284, in run
    self.save_session(ctx)
  File "/usr/lib/python2.3/site-packages/albatross/app.py", line 350, in save_session
    ctx.save_session()
  File "/usr/lib/python2.3/site-packages/albatross/session.py", line 82, in save_session
    text = self.encode_session()
  File "/usr/lib/python2.3/site-packages/albatross/context.py", line 602, in encode_session
    raise ApplicationError('locals "%s": %s' % (name, e))
ApplicationError: locals "user": Can't pickle <class 'Base.User'>: it's not the same object as Base.User


Any idea what the problem is? user of type Base.User is kept in the
session. This happens sometimes and sometimes it works ok.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.object-craft.com.au/pipermail/albatross-users/attachments/20050429/bf7f31f2/attachment.pgp>


More information about the Albatross-users mailing list