# HG changeset patch # User Sylvain Thénault # Date 1250837091 -7200 # Node ID 083593802120a40cdafef7b50ee0ff15e087ae7c # Parent 957fd4b276e2128aa5d03261a6785edf01c93e14 [wf] new workflow_history property, nicer the reverse_wf_info_for... diff -r 957fd4b276e2 -r 083593802120 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]