Module: check_mk
Branch: master
Commit: 7970f5a7879545b24250b3df10cff2f7d9596553
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7970f5a7879545…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Apr 20 13:01:31 2015 +0200
Revert "icon selector accepts internal icons during value validation"
This reverts commit 35e7e850be7a37c9afcdd8c4e0fbd01f98bdf91b.
---
web/htdocs/valuespec.py | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 96259e1..bb3423c 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -3367,14 +3367,7 @@ class IconSelector(ValueSpec):
if not self._allow_empty and not value:
raise MKUserError(varprefix, _("You need to select an icon."))
- def is_internal_icon():
- if defaults.omd_root:
- base_path =
defaults.omd_root+"/share/check_mk/web/htdocs/images"
- else:
- base_path = defaults.web_dir+"/htdocs/images"
- return os.path.exists(base_path+'/icon_'+value+'.png')
-
- if value and value not in self.available_icons() and not is_internal_icon():
+ if value and value not in self.available_icons():
raise MKUserError(varprefix, _("The selected icon image does not
exist."))