Module: check_mk
Branch: master
Commit: 95bb5f1f03eeb0ccf7f31818fe7efe16b465e2ce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=95bb5f1f03eeb0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 3 13:21:53 2012 +0100
Fix problem in htmllib with select()
---
web/htdocs/htmllib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 9946354..dddf9b2 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -444,7 +444,7 @@ class html:
# Sort according to display texts, not keys
sorted = options[:]
sorted.sort(lambda a,b: cmp(a[1].lower(), b[1].lower()))
- self.select(self, varname, sorted, deflt, onchange, attrs)
+ self.select(varname, sorted, deflt, onchange, attrs)
def select(self, varname, options, deflt="", onchange=None, attrs = {}):
current = self.var(varname, deflt)