[facet] refactor: a simple class attribute is enough stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 11 Apr 2011 16:12:02 +0200
branchstable
changeset 7203 e0e802afa8e1
parent 7202 5b80f5ee61b5
child 7204 2b6d3c9455a7
[facet] refactor: a simple class attribute is enough
web/facet.py
--- 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"""