# HG changeset patch # User Adrien Di Mascio # Date 1234911807 -3600 # Node ID ac4a94e50b6006cf6986dc840466e955945defaa # Parent 9062cdc140a970863fef31c0c14b4a003ba048fb some more s/__selectors__/__select__ but still more to come diff -r 9062cdc140a9 -r ac4a94e50b60 goa/appobjects/components.py --- a/goa/appobjects/components.py Tue Feb 17 23:54:30 2009 +0100 +++ b/goa/appobjects/components.py Wed Feb 18 00:03:27 2009 +0100 @@ -30,7 +30,7 @@ """ id = 'search-associate' - __selectors__ = (one_line_rset, match_search_state('linksearch'), accept) + __select__ = one_line_rset() & match_search_state('linksearch') & accept def cell_call(self, row, col): entity = self.entity(0, 0) diff -r 9062cdc140a9 -r ac4a94e50b60 selectors.py --- a/selectors.py Tue Feb 17 23:54:30 2009 +0100 +++ b/selectors.py Wed Feb 18 00:03:27 2009 +0100 @@ -949,7 +949,7 @@ if getattr(cls, 'require_groups', None): warn('use "match_user_groups(group1, group2)" instead of using require_groups', DeprecationWarning) - cls.__select__ &= (match_user_groups(cls.require_groups),) + cls.__select__ &= match_user_groups(cls.require_groups) return cls return plug_selector @@ -960,7 +960,7 @@ if getattr(cls, 'accepts', None): warn('use "match_user_groups(group1, group2)" instead of using require_groups', DeprecationWarning) - cls.__select__ &= (implements(*cls.accepts),) + cls.__select__ &= implements(*cls.accepts) return cls return plug_selector @@ -971,7 +971,7 @@ if getattr(cls, 'condition', None): warn('use "use rql_condition(expression)" instead of using condition', DeprecationWarning) - cls.__select__ &= (rql_condition(cls.condition),) + cls.__select__ &= rql_condition(cls.condition) return cls return plug_selector @@ -982,8 +982,8 @@ if getattr(cls, 'type', None): warn('use relation_possible selector instead of using etype_rtype', DeprecationWarning) - cls.__select__ &= (relation_possible(cls.rtype, role(cls), - getattr(cls, 'etype', None), - action=getattr(cls, 'require_permission', 'read'))) + cls.__select__ &= relation_possible(cls.rtype, role(cls), + getattr(cls, 'etype', None), + action=getattr(cls, 'require_permission', 'read')) return cls return plug_selector diff -r 9062cdc140a9 -r ac4a94e50b60 web/views/eproperties.py --- a/web/views/eproperties.py Tue Feb 17 23:54:30 2009 +0100 +++ b/web/views/eproperties.py Wed Feb 18 00:03:27 2009 +0100 @@ -13,7 +13,7 @@ from cubicweb.selectors import (one_line_rset, none_rset, implements, match_user_groups, chainfirst, chainall) -