Nuxeo mailing list archives
[CPS-devel] objects broken after moving their class from on module
to the other
Julien Anguenot
ja at nuxeo.com
Sat Sep 2 02:14:47 CEST 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060902/d944aab2/signature.pgp
More information about the cps-devel
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.