[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/upgrade.py - minor cleanup
Yvo Schubbe
y.2008 at wcm-solutions.de
Fri Dec 19 17:27:32 EST 2008
Log message for revision 94207:
- minor cleanup
Changed:
U Products.GenericSetup/trunk/Products/GenericSetup/upgrade.py
-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/upgrade.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/upgrade.py 2008-12-19 22:26:52 UTC (rev 94206)
+++ Products.GenericSetup/trunk/Products/GenericSetup/upgrade.py 2008-12-19 22:27:31 UTC (rev 94207)
@@ -10,7 +10,11 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""Upgrade steps and registry.
+$Id$
+"""
+
from pkg_resources import parse_version
from BTrees.OOBTree import OOBTree
@@ -27,7 +31,7 @@
class UpgradeRegistry(object):
"""Registry of upgrade steps, by profile.
-
+
Registry keys are profile ids.
Each registry value is a nested mapping:
@@ -78,6 +82,7 @@
_upgrade_registry = UpgradeRegistry()
+
class UpgradeEntity(object):
"""
Base class for actions to be taken during an upgrade process.
@@ -125,7 +130,7 @@
else:
return checker(tool)
-
+
class UpgradeStep(UpgradeEntity):
"""A step to upgrade a component.
"""
More information about the Checkins
mailing list