Hi,
Am 17.09.2008 um 13:31 schrieb Raphael Ritz:
Gilles Lenfant wrote:
[..]
Is this some new functionality that setuphandlers get a magic
reverse or am I missing something?
Thanks for any hints.
IIRC, the magic is in portal_quickinstaller that records lots of
changed and created stuffs during an install. And can revert all
this on uninstall.
Gille is right that it's the QI that hits you hard here.
You might want to "erase its memory" of your content objects
in your setup handler.
http://blog.m3r.nl/personal/how-to-stop-quickinstaller-from-removing-content
That solution worked very well for me. Adding a Extensions Folder
which Install.py contains just:
def beforeUninstall(self, reinstall=False, product=None, cascade=[]):
""" Prevent created content from being deleted on uninstall
"""
if 'portalobjects' in cascade:
cascade.remove('portalobjects')
return True, cascade
or by fiddling with its internal registry.
Raphael
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers
--
Hans-Peter Locher
InQuant GmbH
Parkstrasse 25
D-88212 Ravensburg
http://www.inquant.de
+49 (0) 751 35 44 112
+49 (0) 751 35 44 115 (FAX)
Geschäftsführer: Lutz Mende
HRB 552769, St.Nr.: 77025/22069, USt.-IdNr.: DE245179196
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers