Commit e736eb8a authored by Julien Muchembled's avatar Julien Muchembled

Example of hyperlink from a workflow transition and the workflow destination state.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25675 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97b921b8
......@@ -53,12 +53,14 @@ class DCWorkflowTransitionDocumentationHelper(DocumentationHelper):
return DocumentationHelper.getTitle(self) \
or self.getDocumentedObject().actbox_name
security.declareProtected(Permissions.AccessContentsInformation, 'getNewStateId')
def getNewStateId(self):
security.declareProtected(Permissions.AccessContentsInformation, 'getNewState')
def getNewState(self):
"""
Returns the id of the new state for de workflow transition
"""
return getattr(self.getDocumentedObject(), "new_state_id", '')
new_state_id = self.getDocumentedObject().new_state_id
if new_state_id:
uri = '%s/states/%s' % (self.uri.rsplit('/',2)[0], new_state_id)
return self.getDocumentationHelper('DCWorkflowStateDocumentationHelper', uri)
security.declareProtected(Permissions.AccessContentsInformation, 'getTriggerType')
def getTriggerType(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment