[facets] fix missing 'warnings' import and missing self reference on 'filtered_variable'
--- 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())