[Checkins] SVN: Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py cleanup

Godefroid Chapelle gotcha at bubblenet.be
Mon May 23 09:15:35 EDT 2011


Log message for revision 121776:
  cleanup

Changed:
  U   Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py

-=-
Modified: Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py
===================================================================
--- Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py	2011-05-23 13:14:18 UTC (rev 121775)
+++ Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py	2011-05-23 13:15:35 UTC (rev 121776)
@@ -53,14 +53,10 @@
         self._registry.clear()
 
     def getUpgradeStepsForProfile(self, profile_id):
-        """Return the upgrade steps mapping for a given profile, or
-        None if there are no steps registered for a profile matching
-        that id.
-        """
+        """Return the upgrade steps mapping for a given profile"""
         profile_steps = self._registry.get(profile_id)
         if profile_steps is None:
-            self._registry[profile_id] = OOBTree()
-            profile_steps = self._registry.get(profile_id)
+            profile_steps = self._registry[profile_id] = OOBTree()
         return profile_steps
 
     def getUpgradeStep(self, profile_id, step_id):



More information about the checkins mailing list