[Checkins]
SVN: Products.GenericSetup/trunk/Products/GenericSetup/tool.py
- made sure listExportSteps doesn't return duplicates
Yvo Schubbe
y.2007- at wcm-solutions.de
Tue Dec 18 14:41:20 EST 2007
Log message for revision 82336:
- made sure listExportSteps doesn't return duplicates
Changed:
U Products.GenericSetup/trunk/Products/GenericSetup/tool.py
-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/tool.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/tool.py 2007-12-18 19:02:24 UTC (rev 82335)
+++ Products.GenericSetup/trunk/Products/GenericSetup/tool.py 2007-12-18 19:41:18 UTC (rev 82336)
@@ -264,7 +264,6 @@
"""
return self._export_registry
-
security.declareProtected(ManagePortal, 'getExportStep')
def getExportStep(self, step, default=None):
"""Simple wrapper to query both the global and local step registry."""
@@ -273,14 +272,12 @@
return res
return self._export_registry.getStep(step, default)
-
security.declareProtected(ManagePortal, 'listExportSteps')
def listExportSteps(self):
steps = _export_step_registry._registered.keys() + \
self._export_registry._registered.keys()
- return steps
+ return tuple(set(steps))
-
security.declareProtected(ManagePortal, 'getImportStep')
def getImportStep(self, step, default=None):
"""Simple wrapper to query both the global and local step registry."""
@@ -289,13 +286,12 @@
return res
return self._import_registry.getStep(step, default)
-
security.declareProtected(ManagePortal, 'getSortedImportSteps')
def getSortedImportSteps(self):
steps = _import_step_registry._registered.values() + \
self._import_registry._registered.values()
return _computeTopologicalSort(steps)
-
+
security.declareProtected(ManagePortal, 'getImportStepMetadata')
def getImportStepMetadata(self, step, default=None):
"""Simple wrapper to query both the global and local step registry."""
More information about the Checkins
mailing list