Module: check_mk
Branch: master
Commit: d69b8db17924caedc0b9afe0e33cc46934b51712
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d69b8db17924ca…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 20 15:26:19 2012 +0200
Revert "Bugfix: Fixed doubled var in view editor (site and siteopt filter)"
This reverts commit e89eadd9a4d3d44018aa9ec4f929e819a92af7ca.
---
web/plugins/views/filters.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index 0cc63b0..4fe3a1b 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -324,20 +324,20 @@ declare_filter(232, FilterNagiosExpression("service",
"in_downtime",
class FilterSite(Filter):
def __init__(self, name, enforce):
- Filter.__init__(self, name, _("Site") + (enforce and _( "
(enforced)") or ""), None, [name], [])
+ Filter.__init__(self, name, _("Site") + (enforce and _( "
(enforced)") or ""), None, ["site"], [])
self.enforce = enforce
def visible(self):
return config.is_multisite()
def display(self):
- site_selector(html, self.name, self.enforce)
+ site_selector(html, "site", self.enforce)
def filter(self, infoname):
if config.is_multisite():
- site = html.var(self.name)
+ site = html.var("site")
if site:
- return "Sites: %s\n" % (html.var(self.name, ""))
+ return "Sites: %s\n" % (html.var("site",
""))
elif not self.enforce:
return ""
else:
@@ -346,7 +346,7 @@ class FilterSite(Filter):
return ""
def heading_info(self, infoname):
- current_value = html.var(self.name)
+ current_value = html.var("site")
if current_value:
alias = config.site(current_value)["alias"]
return alias