[facets] fix missing 'warnings' import and missing self reference on 'filtered_variable' stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 21 Jul 2011 07:54:04 +0200
branchstable
changeset 7678 ab3d1a77be55
parent 7677 134613d3b353
child 7679 c4803e94b8a4
[facets] fix missing 'warnings' import and missing self reference on 'filtered_variable'
web/facet.py
--- a/web/facet.py	Wed Jul 20 18:22:41 2011 +0200
+++ b/web/facet.py	Thu Jul 21 07:54:04 2011 +0200
@@ -48,6 +48,7 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
+from warnings import warn
 from copy import deepcopy
 from datetime import date, datetime, timedelta
 
@@ -745,7 +746,7 @@
                 self._add_not_rel_restr(rel)
             self._and_restriction(rel, restrvar, value.pop())
             while value:
-                restrvar, rtrel = _make_relation(self.select, filtered_variable,
+                restrvar, rtrel = _make_relation(self.select, self.filtered_variable,
                                                  self.rtype, self.role)
                 self._and_restriction(rel, restrvar, value.pop())