Commit ff7b2be1 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[wf] new workflow_history property, nicer the reverse_wf_info_for...

branch : 3.5
parent 957fd4b276e2
......@@ -289,6 +289,13 @@ class WorkflowableMixIn(object):
return self.req._(
return u''
def workflow_history(self):
"""return the workflow history for this entity (eg ordered list of
TrInfo entities)
return self.reverse_wf_info_for
def latest_trinfo(self):
"""return the latest transition information for this entity"""
return self.reverse_wf_info_for[-1]
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