[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow - WorkflowActivityInfo.py:1.1.2.2
Florent Guillaume
fg@nuxeo.com
Wed, 6 Mar 2002 05:02:14 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow
In directory cvs.zope.org:/tmp/cvs-serv9446
Modified Files:
Tag: Zope-3x-branch
WorkflowActivityInfo.py
Log Message:
Basic implementation, more tests.
=== Zope3/lib/python/Zope/App/Workflow/WorkflowActivityInfo.py 1.1.2.1 => 1.1.2.2 ===
__implements__ = IWorkflowActivityInfo
+ def __init__(self, id,
+ title='',
+ category='',
+ action_url='',
+ permissions=(),
+ roles=(),
+ condition=None,
+ source=None,
+ ):
+ self.id = id
+ self._title = title
+ self._category = category
+ self._action_url = action_url
+ self._permissions = permissions
+ self._roles = roles
+ self._condition = condition
+ self._source = source
+
############################################################
# Implementation methods for interface
# Zope.App.Workflow.IWorkflowActivityInfo
def getId(self):
'''See interface IWorkflowActivityInfo'''
+ return self.id
def getTitle(self):
'''See interface IWorkflowActivityInfo'''
+ return self._title
def getCategory(self):
'''See interface IWorkflowActivityInfo'''
+ return self._category
def getActionURL(self):
'''See interface IWorkflowActivityInfo'''
+ return self._action_url
def getPermissions(self):
'''See interface IWorkflowActivityInfo'''
+ return self._permissions
def getRoles(self):
'''See interface IWorkflowActivityInfo'''
+ return self._roles
def getCondition(self):
'''See interface IWorkflowActivityInfo'''
+ return self._condition
def getSource(self):
'''See interface IWorkflowActivityInfo'''
+ return self._source
#
############################################################