Module: check_mk
Branch: master
Commit: 3582330f20c25c3fc1af4f181af2251a8af1fdb7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3582330f20c25c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 23 04:44:14 2013 -0400
Removed peer replication from configuration dialog
Existing peer replications are still unaffected but
will soon be removed anyway.
---
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 7d3f0c9..43e6d79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -92,6 +92,7 @@
* New option for full SNMP scan in bulk inventory
* bulk operations now also available when checkboxes are off
* LDAP: Added test to validate the configured role sync groups
+ * Disabled replication type "peer" in site editor.
* FIX: correct display of number of hosts in bulk inventory
* FIX: nailed down ".siteid" exception when added new site
* FIX: fixed setting for locking mode from 'ait' to 'wait'
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index a59454f..ac32bf7 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7374,7 +7374,7 @@ def mode_edit_site(phase):
forms.section(_("Replication method"))
html.select("replication",
[ ("none", _("No replication with this site")),
- ("peer", _("Peer: synchronize configuration with this site")),
+ # ("peer", _("Peer: synchronize configuration with this site")),
("slave", _("Slave: push configuration to this site"))
], site.get("replication", "none"))
html.help( _("WATO replication allows you to manage several monitoring sites with a "
Module: check_mk
Branch: master
Commit: cf87bbc79c417df73de9b471335394002a9974eb
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf87bbc79c417d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 22 15:13:37 2013 -0400
Fixed layout of ListOfStrings
Cancelling the float: left, that makes e.g. the Negate hosts option appear
in the same line as the list of hosts. I hope this does not break something
on browsers other then Chrome and Firefox.
---
web/htdocs/check_mk.css | 4 ++--
web/htdocs/wato.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/check_mk.css b/web/htdocs/check_mk.css
index 41169e0..aac444f 100644
--- a/web/htdocs/check_mk.css
+++ b/web/htdocs/check_mk.css
@@ -471,7 +471,7 @@ table.valuespec_listof option[selected] {
font-weight: bold;
}
-div.listofstring.horizontal {
+div.listofstrings.horizontal {
clear: left;
}
@@ -484,7 +484,7 @@ div.listofstrings.horizontal > div {
margin-right: 2px;
}
div.listofstrings.horizontal > div:last-child {
- /* float: none; */
+ float: none;
}
table.listchoice {
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 6602edd..c6a0a94 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -11395,7 +11395,7 @@ def mode_edit_rule(phase, new = False):
html.checkbox("negate_hosts", negate_hosts, label =
_("<b>Negate:</b> make rule apply for <b>all but</b> the above hosts"))
- html.write("</div><br>")
+ html.write("</div>")
html.help(_("You can enter a number of explicit host names that rule should or should "
"not apply to here. Leave this option disabled if you want the rule to "
"apply for all hosts specified by the given tags."))
Module: check_mk
Branch: master
Commit: 4dc44d02f6889447227c193d7dbc5fdc5509452b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4dc44d02f68894…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 23 03:06:07 2013 -0400
WATO: bulk operations now also available when checkboxes are off
---
.bugs/982 | 9 ++++++++-
ChangeLog | 1 +
web/htdocs/wato.py | 39 +++++++++++++++++++++------------------
3 files changed, 30 insertions(+), 19 deletions(-)
diff --git a/.bugs/982 b/.bugs/982
index f7b3731..3c6fd58 100644
--- a/.bugs/982
+++ b/.bugs/982
@@ -1,9 +1,16 @@
Title: WATO: Hostlist in folder: enable checkboxes -> all should be checked
Component: wato
-State: open
+State: done
Date: 2013-10-09 20:39:38
Targetversion: 1.4.0
Class: nastiness
When you enable the checkboxes in a WATO folder host list,
then all boxes should initially be checked.
+
+Better solution: readd the bulk buttons also when there
+are no checkboxes at all.
+
+
+2013-10-23 03:05:33: changed state open -> done
+Bulk operations now also work without checkboxes
diff --git a/ChangeLog b/ChangeLog
index c22bec4..0cf8cf3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -87,6 +87,7 @@
distributed WATO (available in the "Distributed Monitoring")
* bulk inventory: display percentage in progress bar
* New option for full SNMP scan in bulk inventory
+ * bulk operations now also available when checkboxes are off
* FIX: correct display of number of hosts in bulk inventory
* FIX: nailed down ".siteid" exception when added new site
* FIX: fixed setting for locking mode from 'ait' to 'wait'
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index bb9fc1d..3f5241f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1292,23 +1292,23 @@ def show_hosts(folder):
'checkbox', _('Hide Checkboxes and bulk actions'), 'checkbox',
html.makeuri([('show_checkboxes', '0')])))
- html.write(' ' + _("Selected hosts:\n"))
+ html.write(' ' + _("Selected hosts:\n"))
- if not g_folder.get(".lock_hosts"):
- if config.may("wato.manage_hosts"):
- html.button("_bulk_delete", _("Delete"))
- if config.may("wato.edit_hosts"):
- html.button("_bulk_edit", _("Edit"))
- html.button("_bulk_cleanup", _("Cleanup"))
- if config.may("wato.services"):
- html.button("_bulk_inventory", _("Inventory"))
- if not g_folder.get(".lock_hosts"):
- if config.may("wato.parentscan"):
- html.button("_parentscan", _("Parentscan"))
- if config.may("wato.edit_hosts") and config.may("wato.move_hosts"):
- move_to_folder_combo("host", None, top)
- if at_least_one_imported:
- html.button("_bulk_movetotarget", _("Move to Target Folders"))
+ if not g_folder.get(".lock_hosts"):
+ if config.may("wato.manage_hosts"):
+ html.button("_bulk_delete", _("Delete"))
+ if config.may("wato.edit_hosts"):
+ html.button("_bulk_edit", _("Edit"))
+ html.button("_bulk_cleanup", _("Cleanup"))
+ if config.may("wato.services"):
+ html.button("_bulk_inventory", _("Inventory"))
+ if not g_folder.get(".lock_hosts"):
+ if config.may("wato.parentscan"):
+ html.button("_parentscan", _("Parentscan"))
+ if config.may("wato.edit_hosts") and config.may("wato.move_hosts"):
+ move_to_folder_combo("host", None, top)
+ if at_least_one_imported:
+ html.button("_bulk_movetotarget", _("Move to Target Folders"))
html.write("</td></tr>\n")
# Show table of hosts in this folder
@@ -1680,16 +1680,19 @@ def delete_folder_after_confirm(del_folder):
# Create list of all hosts that are select with checkboxes in the current file.
# This is needed for bulk operations.
def get_hostnames_from_checkboxes(filterfunc = None):
+ show_checkboxes = html.var("show_checkboxes") == "1"
+
entries = g_folder[".hosts"].items()
entries.sort()
- selected = weblib.get_rowselection('wato-folder-/'+g_folder['.path'])
+ if show_checkboxes:
+ selected = weblib.get_rowselection('wato-folder-/'+g_folder['.path'])
selected_hosts = []
search_text = html.var("search")
for hostname, host in entries:
if (not search_text or (search_text.lower() in hostname.lower())) \
- and ('_c_' + hostname) in selected:
+ and (not show_checkboxes or ('_c_' + hostname) in selected):
if filterfunc == None or \
filterfunc(host):
selected_hosts.append(hostname)