[ZODB-Dev] Emulating site import/export or walking through all site objects?
Adam GROSZER
agroszer at gmail.com
Fri Nov 5 08:42:35 EDT 2010
Hello Mikko,
Friday, November 5, 2010, 10:11:43 AM, you wrote:
MO> Hi,
MO> I would like to create an automatic test to check that Plone add-ons
MO> install and uninstall cleanly. There has been problems that after the
MO> add-on has been uninstalled, there are persistent objects based on the
MO> add-on packages left around. If this happens you cannot import or
MO> export the site anymore.
MO> I would like to walk through all persistent objects contained inside a
MO> site, or emulate import/export functionality to see if this happens or
MO> not. Since I cannot actually unload Python eggs from the memory easily
MO> (is this assumption correct?) I can just check pickled objects by
MO> their dotted name and see if they are in blacklisted packages.
MO> Are there any ready Python recipes or example code where I should start?
MO> The question is also open here:
MO> http://plone.293351.n2.nabble.com/Automatizing-uninstalls-cleanly-test-tp5705298p5705298.html
zodbupdate comes to my mind.
http://pypi.python.org/pypi/zodbupdate/0.5
It will find ALL objects which can't be loaded.
--
Best regards,
Adam GROSZER mailto:agroszer at gmail.com
--
Quote of the day:
Art is anything you can get away with. -- Marshall McLuhan.
More information about the ZODB-Dev
mailing list