Module: check_mk
Branch: master
Commit: ee90eaa66c0a6eed68e457c5e927d8090cb4140e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ee90eaa66c0a6e…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Oct 30 09:48:45 2014 +0100
fixed exception when table.end was called without table.begin
---
web/htdocs/table.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index f5af97a..53e7fe1 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -122,14 +122,14 @@ def end():
finish_previous()
html.unplug()
+ if not table:
+ return
+
# Output-Format "fetch" simply means that all data is being
# returned as Python-values to be rendered somewhere else.
if table["output_format"] == "fetch":
return table["headers"], table["rows"]
- if not table:
- return
-
if table["output_format"] == "csv":
do_csv = True
csv_separator = html.var("csv_separator", ";")
Module: check_mk
Branch: master
Commit: 82d584643aa52491040c63c8093d42fa9db95766
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82d584643aa524…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 29 13:42:12 2014 +0100
Fixed exception when trying to configure legacy ascii emails with bulk notifications
---
web/htdocs/wato.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 18dfd15..4cc42de 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8579,14 +8579,15 @@ def validate_notification_rule(rule, varprefix):
_("It does not make sense to add a bulk configuration for cancelling rules."))
if "bulk" in rule:
- if rule["notify_plugin"]:
+ if rule["notify_plugin"][0]:
info = load_notification_scripts()[rule["notify_plugin"][0]]
if not info["bulk"]:
raise MKUserError(varprefix + "_p_notify_plugin",
_("The notification script %s does not allow bulking.") % info["title"])
else:
raise MKUserError(varprefix + "_p_notify_plugin",
- _("The plain emails currently do not support bulking."))
+ _("Legacy ASCII Emails do not support bulking. You can either disable notification "
+ "bulking or choose another notification plugin which allows bulking."))
def render_notification_rules(rules, userid="", show_title=False, show_buttons=True,