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*... The reason for this is simply that I want to include some data stored separately on export. Any ideas on how to do this?
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
participants (2)
-
Dieter Maurer -
Lennart Regebro