selectors.py
branchstable
changeset 6881 a473bf557456
parent 6871 b746dae3a004
child 6905 fe9fd048e64c
--- a/selectors.py	Mon Jan 24 11:39:53 2011 +0100
+++ b/selectors.py	Mon Jan 24 16:59:26 2011 +0100
@@ -1438,6 +1438,10 @@
     @lltrace
     def __call__(self, cls, req, transition=None, **kwargs):
         # XXX check this is a transition that apply to the object?
+        if transition is None:
+            treid = req.form.get('treid', None)
+            if treid:
+                transition = req.entity_from_eid(treid)
         if transition is not None and getattr(transition, 'name', None) in self.expected:
             return 1
         return 0