Module: check_mk
Branch: master
Commit: e4c2b13d9246d4bbdb9aa344afe0ecebd0bbaa21
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e4c2b13d9246d4…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Aug 2 12:33:51 2012 +0200
WATO: host_tag_attribute now with editable option
---
web/htdocs/wato.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 486cf04..3cf34d3 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -4543,6 +4543,9 @@ def declare_host_tag_attributes():
# the tag dependency defintion.
depends_on_tags = []
depends_on_roles = []
+ attr_editable = True
+ if len(entry) >= 6:
+ attr_editable = entry[5]
if len(entry) >= 5:
depends_on_roles = entry[4]
if len(entry) >= 4:
@@ -4552,6 +4555,7 @@ def declare_host_tag_attributes():
HostTagAttribute(entry[:3]),
show_in_table = False,
show_in_folder = True,
+ editable = attr_editable,
depends_on_tags = depends_on_tags,
depends_on_roles = depends_on_roles,
topic = _("Host tags"))