# HG changeset patch # User Sylvain Thénault # Date 1258396947 -3600 # Node ID 161a5f7d1190e398351ef352ad212910aa47d1c6 # Parent 06ac8f00a99fb476e1cc5909e640eaa3fcaee475 oops, fix wf entity types vocabulary while in creation diff -r 06ac8f00a99f -r 161a5f7d1190 web/views/workflow.py --- a/web/views/workflow.py Mon Nov 16 19:05:54 2009 +0100 +++ b/web/views/workflow.py Mon Nov 16 19:42:27 2009 +0100 @@ -214,7 +214,7 @@ class TransitionEditionForm(autoform.AutomaticEntityForm): __select__ = entity_implements('Transition') - def workflow_transition_for_relation(self, targetrelation): + def workflow_states_for_relation(self, targetrelation): eids = self.edited_entity.linked_to('transition_of', 'subject') if eids: return workflow_items_for_relation(self.req, eids[0], 'state_of', @@ -237,7 +237,7 @@ def subject_allowed_transition_vocabulary(self, rtype, limit=None): if not self.edited_entity.has_eid(): - eids = self.edited_entity.linked_to('transition_of', 'subject') + eids = self.edited_entity.linked_to('state_of', 'subject') if eids: return workflow_items_for_relation(self.req, eids[0], 'transition_of', 'allowed_transition')