Module: check_mk
Branch: master
Commit: f06a20f3b2b545a5829bfead3fb26069240e8e39
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f06a20f3b2b545…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jun 16 10:14:24 2011 +0200
WATO: make API more flexible in one situation
---
web/htdocs/wato.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 14933b6..48e7ee2 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2524,11 +2524,12 @@ def have_folder_attributes():
# "bulk" -> bulk change
# parent: The parent file/folder of the objects to configure
# myself: For mode "folder" the folder/file itself
-def configure_attributes(hosts, for_what, parent, myself=None):
- # html.write("<pre>%s</pre>" % pprint.pformat(hosts))
+def configure_attributes(hosts, for_what, parent, myself=None, without_attributes = []):
for attr in host_attributes:
attrname = attr.name()
+ if attrname in without_attributes:
+ continue # e.g. needed to skip ipaddress in CSV-Import
# In folder/file not all attributes are shown
if for_what == "folder" and not attr.show_in_folder():