[Zope] Export hooks?

Dieter Maurer dieter@handshake.de
Thu, 5 Jun 2003 22:28:50 +0200


Lennart Regebro wrote at 2003-6-5 15:15 +0200:
 > I have an object which I would like to make changes to before exporting. 
 > Is this somehow possible? I notice both __setstate__ and manage_afterAdd 
 > are called duing import, but I can't find anything during *export*...

There is no specific hook for export.

However, "__getstate__" is called in the process.
I am not sure whether it will help you as I do not know
of a way to distinquish a "__getstate__" call during
export from one during normal ZODB saving.


Dieter