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