web/facet.py
branchstable
changeset 7204 2b6d3c9455a7
parent 7203 e0e802afa8e1
child 7205 9220ae2cacf1
--- a/web/facet.py	Mon Apr 11 16:12:02 2011 +0200
+++ b/web/facet.py	Mon Apr 11 16:51:49 2011 +0200
@@ -928,7 +928,9 @@
     """
     attrtype = 'Float' # only numerical types are supported
 
-    wdgclass = FacetRangeWidget
+    @property
+    def wdgclass(self):
+        return FacetRangeWidget
 
     def get_widget(self):
         """return the widget instance to use to display this facet"""
@@ -973,7 +975,9 @@
     """
     attrtype = 'Date' # only date types are supported
 
-    wdgclass = DateFacetRangeWidget
+    @property
+    def wdgclass(self):
+        return DateFacetRangeWidget
 
     def formatvalue(self, value):
         """format `value` before in order to insert it in the RQL query"""