Hi Joachim, Joachim Schmitz wrote: > for cleaningup purposes I moved a class for an portal_type from one > module to the other. After restarting zope all objects of that class > were broken. After moving the class back to the original module > everything is fine again. Is there a way to move a class from one module > to the other ?
You got 2 solutions here :
1)Looking for all broken classes through the ZODB and upgrade the
corresponding attribute in the __dict__ and persist them back.
IIRC, you should find some code doing this within CPSDocument with
"News Item". (see upgrad.py)
2) Define BBB classes :
See for instance :
http://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSCore/trunk/CPSWorkflowTool.py
Cheers,
J.
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - www.nuxeo.com
CPS Platform - http://www.cps-project.org
Mobile: +33 (0) 6 72 57 57 66
signature.asc
Description: OpenPGP digital signature
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
