[Zope-dev] Looking for a way to override the export/import of an persistent object

Johan Carlsson [EasyPublisher] johanc@easypublisher.com
Sat, 14 Dec 2002 13:17:16 +0100


Hi,
I'm looking for someway the override the export/import for persistent Zope=
=20
objects.

For instance having an ExtensionClass based class I could override
the the __setstate__/__getstate__ or __reduce__ methods to change
some of the attributes.
This would be useful for serializing objects that stores some parts
in the file system (for instance "External Files").

But due to the persistent nature of ZODB these methods doesn't work as=
 usual.

Is this at all possible with the current Zope/ZODB?

Regards,
Johan Carlssons


--=20
Torped Strategi och Kommunikation AB
Johan Carlsson
johanc@easypublisher.com

Mail:
Birkagatan 9
SE-113 36  Stockholm
Sweden

Visit:
V=E4stmannagatan 67, Stockholm, Sweden

Phone +46-(0)8-32 31 23
Fax +46-(0)8-32 31 83
Mobil +46-(0)70-558 25 24
http://www.easypublisher.com
http://www.torped.se