Module: check_mk
Branch: master
Commit: 92872a1fa41e12799cb221946f99181d55b6c537
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=92872a1fa41e12…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Apr 20 21:48:02 2013 +0200
forms: allow POST method
---
web/htdocs/forms.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/forms.py b/web/htdocs/forms.py
index 832d1ef..933b034 100644
--- a/web/htdocs/forms.py
+++ b/web/htdocs/forms.py
@@ -43,7 +43,7 @@ def get_input(valuespec, varprefix):
def edit_dictionary(entries, value, focus=None, hover_help=True,
validate=None, buttontext=None, title=None,
- buttons = None):
+ buttons = None, method="GET"):
new_value = value.copy()
if html.var("filled_in") == "form" and html.check_transaction():
messages = []
@@ -68,7 +68,7 @@ def edit_dictionary(entries, value, focus=None, hover_help=True,
else:
return new_value
- html.begin_form("form")
+ html.begin_form("form", method=method)
header(title and title or _("Properties"))
first = True
for name, vs in entries: