[checkmk-commits] Check_MK Git: check_mk: edit_dictionary can now be used without transid handling

Lars Michelsen lm at mathias-kettner.de
Mon Aug 25 15:03:31 CEST 2014


Module: check_mk
Branch: master
Commit: 59eacc25f2a9efdd709d0c0a773d4502cb91d5b1
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=59eacc25f2a9efdd709d0c0a773d4502cb91d5b1

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Mon Aug 25 15:02:31 2014 +0200

edit_dictionary can now be used without transid handling

---

 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 675cc7d..225ba3c 100644
--- a/web/htdocs/forms.py
+++ b/web/htdocs/forms.py
@@ -46,10 +46,10 @@ def get_input(valuespec, varprefix):
 def edit_dictionary(entries, value, focus=None, hover_help=True,
                     validate=None, buttontext=None, title=None,
                     buttons = None, method="GET", preview=False,
-                    varprefix="", formname="form"):
+                    varprefix="", formname="form", consume_transid = True):
     new_value = value.copy()
     if html.var("filled_in") == formname and html.transaction_valid():
-        if not preview:
+        if not preview and consume_transid:
             html.check_transaction()
 
         messages = []



More information about the checkmk-commits mailing list