# HG changeset patch # User Sylvain Thénault # Date 1259685515 -3600 # Node ID 4a71754bf5ebe89768e2a59bef55cc64721e5acb # Parent 5d1b8fc9cb98591ba9aa5c974ed4e836302a4514 oops, this is an object relation diff -r 5d1b8fc9cb98 -r 4a71754bf5eb web/views/workflow.py --- a/web/views/workflow.py Tue Dec 01 12:06:17 2009 +0100 +++ b/web/views/workflow.py Tue Dec 01 17:38:35 2009 +0100 @@ -231,7 +231,7 @@ def object_allowed_transition_vocabulary(self, rtype, limit=None): if not self.edited_entity.has_eid(): return self.workflow_states_for_relation('allowed_transition') - return self.subject_relation_vocabulary(rtype, limit) + return self.object_relation_vocabulary(rtype, limit) class StateEditionForm(autoform.AutomaticEntityForm): @@ -290,7 +290,6 @@ for state in self.entity.reverse_state_of: state.complete() yield state.eid, state - for transition in self.entity.reverse_transition_of: transition.complete() yield transition.eid, transition