[Checkins] SVN: Products.GenericSetup/branches/1.4/Products/GenericSetup/ Added a for_=None parameter to tool.py:listProfileInfo to have the same signature as registry.py:listProfileInfo, so profiles can be filtered by interfaces.

Vincent Fretin vincent.fretin at gmail.com
Sun May 24 08:08:17 EDT 2009


Log message for revision 100331:
  Added a for_=None parameter to tool.py:listProfileInfo to have the same signature as registry.py:listProfileInfo, so profiles can be filtered by interfaces.

Changed:
  U   Products.GenericSetup/branches/1.4/Products/GenericSetup/CHANGES.txt
  U   Products.GenericSetup/branches/1.4/Products/GenericSetup/tool.py

-=-
Modified: Products.GenericSetup/branches/1.4/Products/GenericSetup/CHANGES.txt
===================================================================
--- Products.GenericSetup/branches/1.4/Products/GenericSetup/CHANGES.txt	2009-05-24 10:33:35 UTC (rev 100330)
+++ Products.GenericSetup/branches/1.4/Products/GenericSetup/CHANGES.txt	2009-05-24 12:08:17 UTC (rev 100331)
@@ -4,9 +4,9 @@
 1.4.5 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Added a for_=None parameter to tool.py:listProfileInfo to have the same
+  signature as registry.py:listProfileInfo, so profiles can be filtered by interfaces.
 
-
 1.4.4 (2009-05-15)
 ------------------
 

Modified: Products.GenericSetup/branches/1.4/Products/GenericSetup/tool.py
===================================================================
--- Products.GenericSetup/branches/1.4/Products/GenericSetup/tool.py	2009-05-24 10:33:35 UTC (rev 100330)
+++ Products.GenericSetup/branches/1.4/Products/GenericSetup/tool.py	2009-05-24 12:08:17 UTC (rev 100331)
@@ -706,7 +706,7 @@
         return result
 
     security.declareProtected(ManagePortal, 'listProfileInfo')
-    def listProfileInfo(self):
+    def listProfileInfo(self, for_=None):
 
         """ Return a list of mappings describing registered profiles.
         Base profile is listed first, extensions are sorted.
@@ -725,7 +725,7 @@
         """
         base = []
         ext = []
-        for info in _profile_registry.listProfileInfo():
+        for info in _profile_registry.listProfileInfo(for_):
             if info.get('type', BASE) == BASE:
                 base.append(info)
             else:



More information about the Checkins mailing list