[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_workflow.py:1.7
Tres Seaver
tseaver@zope.com
Fri, 29 Mar 2002 18:44:08 -0500
Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv18017/interfaces
Modified Files:
portal_workflow.py
Log Message:
- Add / reorder to reflect reality.
=== CMF/CMFCore/interfaces/portal_workflow.py 1.6 => 1.7 ===
'''
+ # security.declarePublic('getActionsFor')
+ def getActionsFor(self, ob):
+ '''
+ Return a list of action dictionaries for 'ob', just as though
+ queried via 'ActionsTool.listFilteredActionsFor'.
+ '''
+
# security.declarePublic('doActionFor')
def doActionFor(ob, action, wf_id=None, *args, **kw):
'''
@@ -125,6 +132,13 @@
that apply to ob.
'''
+ #security.declarePrivate('updateRoleMappingsFor')
+ def updateRoleMappingsFor(ob):
+ '''
+ Updates the object permissions according to the current
+ workflow state.
+ '''
+
# security.declarePrivate('listObjectActions')
def listObjectActions(info):
'''
@@ -206,11 +220,4 @@
'''
Invoked by the portal_workflow tool.
Notifies this workflow that an action failed.
- '''
-
- #security.declarePrivate('updateRoleMappingsFor')
- def updateRoleMappingsFor(ob):
- '''
- Updates the object permissions according to the current
- workflow state.
'''