# HG changeset patch # User Sylvain Thénault # Date 1302531122 -7200 # Node ID e0e802afa8e158143554a1768a25238cf40c3317 # Parent 5b80f5ee61b52780c934ee5f81d6d4934bbbfd48 [facet] refactor: a simple class attribute is enough diff -r 5b80f5ee61b5 -r e0e802afa8e1 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"""