web/facet.py
changeset 407 68783684ec2f
parent 368 84a5106840fa
child 408 a8814ff6824e
--- a/web/facet.py	Wed Jan 14 13:26:04 2009 +0100
+++ b/web/facet.py	Wed Jan 14 14:29:56 2009 +0100
@@ -2,7 +2,7 @@
 a search
 
 :organization: Logilab
-:copyright: 2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 __docformat__ = "restructuredtext en"
@@ -19,7 +19,7 @@
 from rql import parse, nodes
 
 from cubicweb import Unauthorized, typed_eid
-from cubicweb.common.selectors import contextprop_selector, one_has_relation_selector
+from cubicweb.common.selectors import match_context_prop, one_has_relation
 from cubicweb.common.registerers import priority_registerer
 from cubicweb.common.appobject import AppRsetObject
 from cubicweb.common.utils import AcceptMixIn
@@ -332,7 +332,7 @@
         
 
 class RelationFacet(VocabularyFacet):
-    __selectors__ = (one_has_relation_selector, contextprop_selector)
+    __selectors__ = (one_has_relation, match_context_prop)
     # class attributes to configure the relation facet
     rtype = None
     role = 'subject'