pickle problem

Luci Stanescu <[email protected]> Fri, 29 Apr 2005 18:15:32 +0300
Newsgroups gmane.comp.web.albatross.general
Message-ID <[email protected]>
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.
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCck+ULXPQWKbZq2oRAlcfAKCAIvqxEZm5f30NLoGsvsI+EwvkAACfZS76
KvzUDIi43gEJuUJstQ2S4fA=
=4R+Q
-----END PGP SIGNATURE-----