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

Yvo Schubbe y.2004_ at wcm-solutions.de
Tue Sep 7 04:48:24 EDT 2004


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

Modified Files:
      Tag: CMF-1_5-branch
	portal_types.py 
Log Message:
Merged yuppie-ti_aliases-redo-branch:
- replaced getMethodPath and getMethodURL by queryMethodID


=== Products/CMFCore/interfaces/portal_types.py 1.17 => 1.17.2.1 ===
--- Products/CMFCore/interfaces/portal_types.py:1.17	Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/interfaces/portal_types.py	Tue Sep  7 04:47:54 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