Module: check_mk
Branch: master
Commit: 8b06eb7a57ac48729b8843279e6183d311c4d82d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b06eb7a57ac48…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Apr 29 21:50:12 2012 +0200
Parentscan: persist user settings
---
web/htdocs/wato.py | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2a40898..6e23d8e 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2817,6 +2817,19 @@ def mode_parentscan(phase):
if html.var("_start"):
+ # Persist settings
+ settings = {
+ "where" : html.var("where"),
+ "alias" : html.var_utf8("alias").strip() or
None,
+ "recurse" : html.get_checkbox("recurse"),
+ "select" : html.var("select"),
+ "timeout" : saveint(html.var("timeout")) or 8,
+ "probes" : saveint(html.var("probes")) or 2,
+ "force_explicit" : html.get_checkbox("force_explicit"),
+ }
+ config.save_user_file("parentscan", settings)
+
+
# Start interactive progress
interactive_progress(
items,
@@ -2853,7 +2866,7 @@ def mode_parentscan(phase):
html.write("<table class=form>")
- settings = {
+ settings = config.load_user_file("parentscan", {
"where" : "subfolder",
"alias" : _("Created by parent scan"),
"recurse" : True,
@@ -2861,7 +2874,7 @@ def mode_parentscan(phase):
"timeout" : 8,
"probes" : 2,
"force_explicit" : False,
- }
+ })
# Selection
html.write("<tr><td class=legend>" +
_("Selection") + "</td><td class=content>")