[CMF-checkins] CVS: Products/CMFCore/interfaces -
portal_actions.py:1.19.2.1
Yvo Schubbe
y.2005- at wcm-solutions.de
Mon Jan 24 14:31:46 EST 2005
Update of /cvs-repository/Products/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv30226/CMFCore/interfaces
Modified Files:
Tag: yuppie-new_actions-branch
portal_actions.py
Log Message:
- initial checkin of newstyle Actions
=== Products/CMFCore/interfaces/portal_actions.py 1.19 => 1.19.2.1 ===
--- Products/CMFCore/interfaces/portal_actions.py:1.19 Tue Sep 14 15:02:21 2004
+++ Products/CMFCore/interfaces/portal_actions.py Mon Jan 24 14:31:15 2005
@@ -90,7 +90,7 @@
Raises an ValueError exception if the action is of the wrong format.
Permission -- Private
-
+
Returns -- The actions object reference.
"""
@@ -117,6 +117,40 @@
Permission -- Always available
Returns -- ActionInfo object
+ """
+
+
+class ActionCategory(Interface):
+ """ Group of Action objects.
+ """
+
+ def listActions():
+ """ List the actions defined in this category and its subcategories.
+
+ Permission -- Python only
+
+ Returns -- Tuple of Action objects.
+ """
+
+
+class Action(Interface):
+ """ Reference to an action.
+ """
+
+ def getInfoData():
+ """ Get the data needed to create an ActionInfo.
+
+ Default keys are: 'id', 'category', 'title', 'description', 'url',
+ 'icon', 'available', 'permissions' and 'visible'.
+
+ Instead of computed values callable expression objects or methods are
+ returned. For performance reasons, these objects are called later and
+ only if the values are actually needed. The keys for all these lazy
+ values are registered in a separate list.
+
+ Permission -- Python only
+
+ Returns -- Lazy info mapping and list of lazy keys.
"""
More information about the CMF-checkins
mailing list