Module: check_mk
Branch: master
Commit: f3639e12a7970ea4896ad305c58add8e8ce39474
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f3639e12a7970e…
Author: Roland Halbig <rh(a)mathias-kettner.de>
Date: Wed Oct 12 15:15:27 2016 +0200
Small bugfix to htmllib API: a and label function definition
---
web/htdocs/htmllib.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 54e303b..6781253 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -431,7 +431,7 @@ class HTMLGenerator(OutputFunnel):
self.write(self._render_opening_tag('a', **attrs))
- def a(self, href, content, **attrs):
+ def a(self, content, href, **attrs):
attrs['href'] = href
self.write(self._render_content_tag('a', content, **attrs))
@@ -480,7 +480,7 @@ class HTMLGenerator(OutputFunnel):
#
- def label(self, for_, content, **attrs):
+ def label(self, content, for_, **attrs):
attrs['for'] = for_
self.write(self._render_content_tag('label', content, **attrs))
@@ -695,7 +695,7 @@ class HTMLCheck_MK(HTMLGenerator):
self.open_table(class_="header")
self.open_tr()
self.open_td(width="*", class_="heading")
- self.a(href="#", content = title, onfocus="if (this.blur)
this.blur();",
+ self.a(title, href="#", onfocus="if (this.blur)
this.blur();",
onclick="this.innerHTML=\'%s\';
document.location.reload();" % _("Reloading..."))
self.close_td()
@@ -780,9 +780,10 @@ class HTMLCheck_MK(HTMLGenerator):
self.write(self.render_icon_button(*args, **kwargs))
-class DeprecationWrapper(HTMLCheck_MK):
+#.
+class DeprecationWrapper(HTMLCheck_MK):
# Only strip off some tags. We allow some simple tags like
# <b>, <tt>, <i> to be part of the string. This is useful
# for messages where we still want to have formating options.