oops, this is an object relation stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 01 Dec 2009 17:38:35 +0100
branchstable
changeset 3957 4a71754bf5eb
parent 3956 5d1b8fc9cb98
child 3958 505025eb0d37
oops, this is an object relation
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