Module: check_mk
Branch: master
Commit: c5dee65a4150bce5b07ab37c15889e1da93f9af5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c5dee65a4150bc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 4 16:39:23 2014 +0200
internal code cleanup: move attrencode to TextAscii
---
web/htdocs/valuespec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 05cecf3..e27f392 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -38,7 +38,6 @@ class ValueSpec:
def __init__(self, **kwargs):
self._title = kwargs.get("title")
self._help = kwargs.get("help")
- self._attrencode = kwargs.get("attrencode", False)
if "default_value" in kwargs:
self._default_value = kwargs.get("default_value")
self._validate = kwargs.get("validate")
@@ -324,6 +323,7 @@ class TextAscii(ValueSpec):
self._size = kwargs.get("size", 25) # also possible:
"max"
self._cssclass = kwargs.get("cssclass", "text")
self._strip = kwargs.get("strip", True)
+ self._attrencode = kwargs.get("attrencode", False)
self._allow_empty = kwargs.get("allow_empty", _("none"))
self._empty_text = kwargs.get("empty_text", "")
self._read_only = kwargs.get("read_only")