Module: check_mk
Branch: master
Commit: 86aae873f19bbc65b6ff79c83b584a247811395c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=86aae873f19bbc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 25 11:20:42 2012 +0200
Fix default value of ValueSpec Dictionary
---
web/htdocs/valuespec.py | 8 ++++++++
web/plugins/wato/active_checks.py | 3 ++-
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 07cc648..62ee869 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -1656,6 +1656,14 @@ class Dictionary(ValueSpec):
in self._elements
if name in self._required_keys or not self._optional_keys])
+ def default_value(self):
+ def_val = {}
+ for name, vs in self._elements:
+ if name in self._required_keys or not self._optional_keys:
+ def_val[name] = vs.default_value()
+
+ return def_val
+
def value_to_text(self, value):
parts = []
for param, vs in self._elements:
diff --git a/web/plugins/wato/active_checks.py b/web/plugins/wato/active_checks.py
index ea82ea6..215578f 100644
--- a/web/plugins/wato/active_checks.py
+++ b/web/plugins/wato/active_checks.py
@@ -503,7 +503,8 @@ register_rule(group,
title = _("Service description"),
help = _("Please make sure that this is unique per host "
"and does not collide with other services."),
- allow_empty = False)
+ allow_empty = False,
+ default_value = _("Customcheck"))
),
( "command_line",
TextAscii(
Module: check_mk
Branch: master
Commit: 6350e0c318f3dbe8da8e4e7cf9ef8c8171c74067
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6350e0c318f3db…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri May 25 10:34:26 2012 +0200
Updated bug entries #0751
---
.bugs/751 | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.bugs/751 b/.bugs/751
index 27ca54e..2a45a93 100644
--- a/.bugs/751
+++ b/.bugs/751
@@ -1,11 +1,15 @@
Title: CascadingDropdown: visibility broken in case of complain
Component: multisite
-State: open
+Class: bug
+State: done
Date: 2012-05-16 05:43:37
Targetversion: 1.2.0
-Class: bug
If the validate_value raises an exception, the sub-vs will
not be visible. Try this out: got the the details of one
multisite connection, select "Connect via TCP", leave the
host field empty and save.
+
+2012-05-25 10:34:23: changed state open -> done
+This should be solved now. Hope I understood that magic thing ;-).
+Need to review my changes with Mathias.
Module: check_mk
Branch: master
Commit: e540969e2ae9364b8bae5da386207ba1564578d1
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e540969e2ae936…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 25 10:21:01 2012 +0200
Updated bug entries #0755
---
.bugs/755 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/755 b/.bugs/755
index f799cee..ec42e3b 100644
--- a/.bugs/755
+++ b/.bugs/755
@@ -1,9 +1,9 @@
Title: Implement locking in WATO
Component: wato
-State: open
+Class: bug
+State: done
Date: 2012-05-24 19:49:08
Targetversion: 1.2.0
-Class: bug
We need to prevent multiple users using WATO at the same time
getting into conflict. This should be done in the following way:
@@ -19,3 +19,6 @@ getting into conflict. This should be done in the following way:
[3] Activating foreign changes will need a special permission.
Still people need to make sure that the use personalized logins.
+
+2012-05-25 10:21:00: changed state open -> done
+Implemented as described.