[CMF-checkins] CVS: CMF/CMFCore/interfaces - Dynamic.py:1.3

Yvo Schubbe y.2004_ at wcm-solutions.de
Thu Feb 5 09:34:02 EST 2004


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv23466/CMFCore/interfaces

Modified Files:
	Dynamic.py 
Log Message:
- added getActionInfo to DynamicType


=== CMF/CMFCore/interfaces/Dynamic.py 1.2 => 1.3 ===
--- CMF/CMFCore/interfaces/Dynamic.py:1.2	Mon Jan  6 15:43:40 2003
+++ CMF/CMFCore/interfaces/Dynamic.py	Thu Feb  5 09:33:31 2004
@@ -25,12 +25,28 @@
 class DynamicType(Interface):
     """ General interface for dynamic items.
     """
-    
-    def getIcon(relative_to_portal=0):
+
+    def getTypeInfo():
+        """ Get the TypeInformation object specified by the portal type.
+
+        A shortcut to 'getTypeInfo' of portal_types.
+
+        Permission -- Always available
         """
-        This method returns the path to an object's icon. It is used 
-        in the folder_contents view to generate an appropriate icon 
-        for the items found in the folder.
+
+    def getActionInfo(action_chain, check_visibility=0, check_condition=0):
+        """ Get an Action info mapping specified by a chain of actions.
+
+        A shortcut to 'getActionInfo' of the related TypeInformation object.
+
+        Permission -- Always available
+        """
+
+    def getIcon(relative_to_portal=0):
+        """ Get the path to an object's icon.
+        
+        This method is used in the folder_contents view to generate an
+        appropriate icon for the items found in the folder.
 
         If the content item does not define an attribute named "icon"
         this method will return the path "/misc_/dtmldoc.gif", which is 
@@ -39,4 +55,6 @@
         If 'relative_to_portal' is true, return only the portion of
         the icon's URL which finds it "within" the portal;  otherwise,
         return it as an absolute URL.
+
+        Permission -- Always available
         """




More information about the CMF-checkins mailing list