[CMF-checkins] CVS: Products/CMFCore/interfaces - portal_actions.py:1.16

Grégoire Weber zope.org at incept.ch
Wed Jun 30 11:40:47 EDT 2004


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

Modified Files:
	portal_actions.py 
Log Message:
- it's now possible to edit properties of an existing action directly. Example: action_provider.getActionObject('object/view').edit(title='Another Title') sets the title to a new value.


=== Products/CMFCore/interfaces/portal_actions.py 1.15 => 1.16 ===
--- Products/CMFCore/interfaces/portal_actions.py:1.15	Mon Apr 26 08:34:10 2004
+++ Products/CMFCore/interfaces/portal_actions.py	Wed Jun 30 11:40:17 2004
@@ -96,6 +96,18 @@
         Returns -- Tuple of ActionInformation objects
         """
 
+    def getActionObject(action):
+        """Return the actions object or None if action doesn't exist.
+        
+        'action' is an action 'path' (e.g. 'object/view').
+        
+        Raises an ValueError exception if the action is of the wrong format.
+        
+        Permission -- Private
+        
+        Returns -- The actions object reference.
+        """
+
     def listActionInfos(action_chain=None, object=None, check_visibility=1,
                         check_permissions=1, check_condition=1, max=-1):
         """ List Action info mappings.



More information about the CMF-checkins mailing list