[wf] new workflow_history property, nicer the reverse_wf_info_for... 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Aug 2009 08:44:51 +0200
branch3.5
changeset 2947 083593802120
parent 2946 957fd4b276e2
child 2948 d3cd8bd20ee5
[wf] new workflow_history property, nicer the reverse_wf_info_for...
entities/wfobjs.py
--- a/entities/wfobjs.py	Fri Aug 21 08:44:16 2009 +0200
+++ b/entities/wfobjs.py	Fri Aug 21 08:44:51 2009 +0200
@@ -289,6 +289,13 @@
             return self.req._(state.name)
         return u''
 
+    @property
+    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]