equal
deleted
inserted
replaced
525 |
525 |
526 class match_transition(match_search_state): |
526 class match_transition(match_search_state): |
527 @lltrace |
527 @lltrace |
528 def __call__(self, cls, req, rset=None, row=None, col=0, **kwargs): |
528 def __call__(self, cls, req, rset=None, row=None, col=0, **kwargs): |
529 try: |
529 try: |
530 trname = req.execute('Any XN WHERE X is Transition, X eid %(x)s, X name XN', |
530 # XXX check this is a transition that apply to the object? |
531 {'x': typed_eid(req.form['treid'])})[0][0] |
531 if not kwargs['transition'].name in self.expected: |
532 except (KeyError, IndexError): |
532 return 0 |
533 return 0 |
533 except KeyError: |
534 # XXX check this is a transition that apply to the object? |
|
535 if not trname in self.expected: |
|
536 return 0 |
534 return 0 |
537 return 1 |
535 return 1 |
538 |
536 |
539 |
537 |
540 class match_view(match_search_state): |
538 class match_view(match_search_state): |