I've checked in code for CPS 3.4.0 that adds an "Upgrades" tab to the setup tool.
Using it, you can very simply see available upgrades and run them.

Upgrades are registered through zcml.
An upgrade method can have a "checker" that verifies if the upgrade is applicable. This checker must be "fast", it's ok for it to check a few objects but it's not ok to iterate over all the catalog or all the documents. In doubt (and as is done for a few of the upgrades that CPS registers), don't define a checker.

Please remember that upgrades are *not* designed to update configuration. That's what profiles are for. Upgrades are designed to fix things in the documents themselves, or do something a profile update wouldn't fix.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]



_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to