entities/wfobjs.py
branch3.5
changeset 2947 083593802120
parent 2946 957fd4b276e2
child 2948 d3cd8bd20ee5
equal deleted inserted replaced
2946:957fd4b276e2 2947:083593802120
   287         state = self.current_state
   287         state = self.current_state
   288         if state:
   288         if state:
   289             return self.req._(state.name)
   289             return self.req._(state.name)
   290         return u''
   290         return u''
   291 
   291 
       
   292     @property
       
   293     def workflow_history(self):
       
   294         """return the workflow history for this entity (eg ordered list of
       
   295         TrInfo entities)
       
   296         """
       
   297         return self.reverse_wf_info_for
       
   298 
   292     def latest_trinfo(self):
   299     def latest_trinfo(self):
   293         """return the latest transition information for this entity"""
   300         """return the latest transition information for this entity"""
   294         return self.reverse_wf_info_for[-1]
   301         return self.reverse_wf_info_for[-1]
   295 
   302 
   296     @cached
   303     @cached