# HG changeset patch # User Sylvain Thénault # Date 1302533509 -7200 # Node ID 2b6d3c9455a74a6ccbcbcece78b4a6205673e23b # Parent e0e802afa8e158143554a1768a25238cf40c3317 Backed out changeset e0e802afa8e1, widgets are actually defined below diff -r e0e802afa8e1 -r 2b6d3c9455a7 web/facet.py --- 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"""