Module: check_mk
Branch: master
Commit: 9ee4837bda32ceea1b16e82410c4305d27c76d13
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9ee4837bda32ce…
Author: Roland Halbig <rh(a)mathias-kettner.de>
Date: Tue Oct 18 13:06:22 2016 +0200
Fixed len bug in HTML class
---
web/htdocs/htmllib.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index f7d2126..32ede4b 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -185,6 +185,11 @@ class HTML(object):
return self.value >= other
+ def __len__(self):
+ return len(self.value)
+
+
+
__builtin__.HTML = HTML