right, or implement __setstate__.
On Jan 15, 2007, at 6:07 AM, Manlio Perillo wrote:
Michael Bayer ha scritto:
if you can pickle the object by itself, then id guess youre using
lazy
loaders with the query.options(lazyload('something')) call, which
places per-object lazy loaders (i.e. callables) on your objects.
I'm not sure, since I never use lazy loaders (I use Twisted).
either make sure the lazy loaders are fired off, or make lazyload the
default loading for that mapper. similar advice if you are using
deferred columns.
The problem can be with a nested relation (always lazy loaded, as I
can understand).
However the best solution is to implement __setstate__, also for
avoiding trash in the database.
Thanks and regards Manlio Perillo
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---