Module: check_mk
Branch: master
Commit: d45ac96fdd6784f67fbd52227f7486954cb42c4f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d45ac96fdd6784…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 14 16:56:17 2016 +0100
Fixed invalid function call in FilterInvtableAge view filter
---
web/plugins/visuals/inventory.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/plugins/visuals/inventory.py b/web/plugins/visuals/inventory.py
index 311f4fe..5d73945 100644
--- a/web/plugins/visuals/inventory.py
+++ b/web/plugins/visuals/inventory.py
@@ -36,6 +36,7 @@ def try_int(x):
except:
return x
+
class FilterInvtableText(Filter):
def __init__(self, infoname, name, title):
varname = infoname + "_" + name
@@ -60,6 +61,8 @@ class FilterInvtableText(Filter):
newrows.append(row)
return newrows
+
+
# Filter for choosing a range in which an age lies
class FilterInvtableAge(Filter):
def __init__(self, infoname, name, title, only_days=False):
@@ -81,7 +84,7 @@ class FilterInvtableAge(Filter):
return True
def filter_table(self, rows):
- return filter_table_with_conversion(self, rows, lambda age: age)
+ return self.filter_table_with_conversion(self, rows, lambda age: age)
def filter_table_with_conversion(self, rows, conv):
from_value = Age().from_html_vars(self.name + "_from")
@@ -104,6 +107,7 @@ class FilterInvtableAge(Filter):
return newrows
+
class FilterInvtableTimestampAsAge(FilterInvtableAge):
def __init__(self, infoname, name, title, only_days=True):
FilterInvtableAge.__init__(self, infoname, name, title, only_days)
@@ -115,7 +119,6 @@ class FilterInvtableTimestampAsAge(FilterInvtableAge):
-
# Filter for choosing a range in which a certain integer lies
class FilterInvtableIDRange(Filter):
def __init__(self, infoname, name, title):