[web/facet] fix example selector in docstring stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 26 Sep 2011 18:25:22 +0200
branchstable
changeset 7860 ee233d5365b4
parent 7858 f91255a3b2c2
child 7861 1d54ceb9f6a0
[web/facet] fix example selector in docstring
web/facet.py
--- a/web/facet.py	Mon Sep 26 17:48:48 2011 +0200
+++ b/web/facet.py	Mon Sep 26 18:25:22 2011 +0200
@@ -991,7 +991,7 @@
       class AgencyFacet(RQLPathFacet):
           __regid__ = 'agency'
           # this facet should only be selected when visualizing offices
-          __select__ = RelationFacet.__select__ & is_instance('Office')
+          __select__ = is_instance('Office')
           # this facet is a filter on the 'Agency' entities linked to the office
           # through the 'proposed_by' relation, where the office is the subject
           # of the relation
@@ -1002,7 +1002,7 @@
       class PostalCodeFacet(RQLPathFacet):
           __regid__ = 'postalcode'
           # this facet should only be selected when visualizing offices
-          __select__ = RelationAttributeFacet.__select__ & is_instance('Office')
+          __select__ = is_instance('Office')
           # this facet is a filter on the PostalAddress entities linked to the
           # office through the 'has_address' relation, where the office is the
           # subject of the relation