make new argument optional
Message-ID: <5436736b.DSufwa/IpuD7wIIS%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 011f47dcef77df12122aeb1f3ad4071f59851d3e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=011f47dcef77df…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 9 13:37:06 2014 +0200
htmllib: Fix bug from this morning: make new argument optional
---
web/htdocs/htmllib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 56ddb8f..e24a5f4 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -197,7 +197,7 @@ class html:
self.write("</form>\n")
self.form_name = None
- def form_submitted(self, form_name):
+ def form_submitted(self, form_name=None):
if form_name:
return self.var("filled_in") == form_name
else: