[CMF-checkins] CVS: Products/CMFCore/interfaces - portal_actions.py:1.4
Jens Vagelpohl
jens@zope.com
Thu, 27 Sep 2001 11:38:12 -0400
Update of /cvs-repository/Products/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv32403/CMFCore/interfaces
Modified Files:
portal_actions.py
Log Message:
Added the new action provider manipulation API
=== Products/CMFCore/interfaces/portal_actions.py 1.3 => 1.4 ===
id = Attribute('id', 'Must be set to "portal_actions"')
+ # listActionProviders__roles__ = ( 'Manager', )
+ def listActionProviders():
+ """ Lists all action provider names registered with the
+ actions tool.
+ """
+
+ # addActionProvider__roles__ = ( 'Manager', )
+ def addActionProvider( provider_name ):
+ """ Add a new action provider to the providers known by the actions
+ tool. A provider must implement listActions.
+ The provider is only added is the actions tool can find the
+ object corresponding to the provider_name
+ """
+
+ # deleteActionProvider__roles__ = ( 'Manager', )
+ def deleteActionProvider( provider_name ):
+ """ Deletes an action provider name from the providers known to
+ the actions tool. The deletion only takes place if provider_name
+ is actually found among the known action providers.
+ """
+
# listFilteredActionsFor__roles__ = None
def listFilteredActionsFor(object):
'''Gets all actions available to the user and returns a mapping