equal
deleted
inserted
replaced
289 relation (which implies supporting 'wf_info_for' as well) |
289 relation (which implies supporting 'wf_info_for' as well) |
290 """ |
290 """ |
291 __implements__ = (IWorkflowable,) |
291 __implements__ = (IWorkflowable,) |
292 |
292 |
293 @property |
293 @property |
294 def current_workflow(self): |
294 def main_workflow(self): |
295 """return current workflow applied to this entity""" |
295 """return current workflow applied to this entity""" |
296 if self.custom_workflow: |
296 if self.custom_workflow: |
297 return self.custom_workflow[0] |
297 return self.custom_workflow[0] |
298 return self.cwetype_workflow() |
298 return self.cwetype_workflow() |
|
299 |
|
300 @property |
|
301 def current_workflow(self): |
|
302 """return current workflow applied to this entity""" |
|
303 return self.current_state.workflow |
299 |
304 |
300 @property |
305 @property |
301 def current_state(self): |
306 def current_state(self): |
302 """return current state entity""" |
307 """return current state entity""" |
303 return self.in_state and self.in_state[0] or None |
308 return self.in_state and self.in_state[0] or None |