equal
deleted
inserted
replaced
472 return 0 |
472 return 0 |
473 score = 1 |
473 score = 1 |
474 else: |
474 else: |
475 score = all(user.owns(r[col]) for r in rset) |
475 score = all(user.owns(r[col]) for r in rset) |
476 return score |
476 return score |
|
477 |
|
478 |
|
479 class match_view(match_search_state): |
|
480 """accept if the current view is in one of the expected vid given to the |
|
481 initializer |
|
482 """ |
|
483 @lltrace |
|
484 def __call__(self, cls, req, rset, row=None, col=0, view=None, **kwargs): |
|
485 if view is None or not view.id in self.expected: |
|
486 return 0 |
|
487 return 1 |
477 |
488 |
478 |
489 |
479 class appobject_selectable(Selector): |
490 class appobject_selectable(Selector): |
480 """accept with another appobject is selectable using selector's input |
491 """accept with another appobject is selectable using selector's input |
481 context. |
492 context. |