web/facet.py
branchstable
changeset 6152 6824f8b61098
parent 6120 c000e41316ec
child 6251 afc757568492
--- a/web/facet.py	Wed Aug 25 19:01:58 2010 +0200
+++ b/web/facet.py	Thu Aug 26 10:13:48 2010 +0200
@@ -482,7 +482,7 @@
       class AgencyFacet(RelationFacet):
           __regid__ = 'agency'
           # this facet should only be selected when visualizing offices
-          __select__ = RelationFacet.__select__ & implements('Office')
+          __select__ = RelationFacet.__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
@@ -659,7 +659,7 @@
       class PostalCodeFacet(RelationAttributeFacet):
           __regid__ = 'postalcode'
           # this facet should only be selected when visualizing offices
-          __select__ = RelationAttributeFacet.__select__ & implements('Office')
+          __select__ = RelationAttributeFacet.__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
@@ -722,7 +722,7 @@
 
       class SurfaceFacet(AttributeFacet):
           __regid__ = 'surface'
-          __select__ = AttributeFacet.__select__ & implements('Office')
+          __select__ = AttributeFacet.__select__ & is_instance('Office')
           # this facet is a filter on the office'surface
           rtype = 'surface'
           # override the default value of operator since we want to filter
@@ -794,7 +794,7 @@
 
       class SurfaceFacet(RangeFacet):
           __regid__ = 'surface'
-          __select__ = RangeFacet.__select__ & implements('Office')
+          __select__ = RangeFacet.__select__ & is_instance('Office')
           # this facet is a filter on the office'surface
           rtype = 'surface'
 
@@ -880,7 +880,7 @@
 
       class HasImageFacet(HasRelationFacet):
           __regid__ = 'hasimage'
-          __select__ = HasRelationFacet.__select__ & implements('Book')
+          __select__ = HasRelationFacet.__select__ & is_instance('Book')
           rtype = 'has_image'
           role = 'subject'
     """