Module: check_mk
Branch: master
Commit: a42f04eaa2c8016a3ba76709677efc1a0c453f79
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a42f04eaa2c801…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jan 7 15:13:41 2013 +0100
table: fix against misuse at some places
---
web/htdocs/htmllib.py | 2 ++
web/htdocs/table.py | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 8f519a6..bdb7081 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -256,6 +256,8 @@ class html:
t = self.plugged_text
self.plugged_text = ''
return t
+ else:
+ return ''
def unplug(self):
self.plugged = False
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index 72a90f5..1b6e1b2 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -56,8 +56,10 @@ def begin(title=None, **kwargs):
next_func = None
def finish_previous():
+ global next_func
if next_func:
next_func(*next_args[0], **next_args[1])
+ next_func = None
def row(*posargs, **kwargs):
finish_previous()