[CMF-checkins] CVS: Products/CMFCore/interfaces - portal_types.py:1.17.6.1

Yvo Schubbe y.2004_ at wcm-solutions.de
Sun Sep 5 14:05:17 EDT 2004


Update of /cvs-repository/Products/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv21080/CMFCore/interfaces

Modified Files:
      Tag: yuppie-ti_aliases-redo-branch
	portal_types.py 
Log Message:
- simplified Method Aliases API: queryMethodID replaces getMethodPath and getMethodURL


=== Products/CMFCore/interfaces/portal_types.py 1.17 => 1.17.6.1 ===
--- Products/CMFCore/interfaces/portal_types.py:1.17	Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/interfaces/portal_types.py	Sun Sep  5 14:04:47 2004
@@ -70,8 +70,11 @@
         """
 
     def getActionById(id):
-        """
-            Return the URL of the action whose ID is id.
+        """ Get method ID by action ID.
+
+        This method is deprecated and will be removed in CMF 1.6. Please use
+        getActionInfo()['url'] if you need an URL or queryMethodID() if you
+        need a method ID.
         """
 
     def getIcon():
@@ -95,20 +98,12 @@
         Returns -- Boolean value
         """
 
-    def getMethodPath(key):
-        """ Get reverse relative method path by alias.
-
-        Permission -- Always available
-
-        Returns -- Tuple of IDs
-        """
-
-    def getMethodURL(key):
-        """ Get relative method URL by alias.
+    def queryMethodID(alias, default=None):
+        """ Query method ID by alias.
 
         Permission -- Always available
 
-        Returns -- Slash-separated string
+        Returns -- Method ID or default value
         """
 
 



More information about the CMF-checkins mailing list