equal
deleted
inserted
replaced
409 """ |
409 """ |
410 return self.reverse_wf_info_for |
410 return self.reverse_wf_info_for |
411 |
411 |
412 def latest_trinfo(self): |
412 def latest_trinfo(self): |
413 """return the latest transition information for this entity""" |
413 """return the latest transition information for this entity""" |
414 return self.reverse_wf_info_for[-1] |
414 try: |
|
415 return self.reverse_wf_info_for[-1] |
|
416 except IndexError: |
|
417 return None |
415 |
418 |
416 @cached |
419 @cached |
417 def cwetype_workflow(self): |
420 def cwetype_workflow(self): |
418 """return the default workflow for entities of this type""" |
421 """return the default workflow for entities of this type""" |
419 wfrset = self.req.execute('Any WF WHERE ET default_workflow WF, ' |
422 wfrset = self.req.execute('Any WF WHERE ET default_workflow WF, ' |