Module: check_mk
Branch: master
Commit: ffd18e36957c88685f641179d4b584ba55891526
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ffd18e36957c88…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 11 09:58:16 2015 +0100
NagiosTextAttribute input field can now be configured to have a different size
---
web/htdocs/wato.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 1c597b0..7d6f3d1 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6064,7 +6064,8 @@ class Attribute:
# A simple text attribute. It is stored in
# a Python unicode string
class TextAttribute(Attribute):
- def __init__(self, name, title, help = None, default_value="",
mandatory=False, allow_empty=True, size=25):
+ def __init__(self, name, title, help = None, default_value="",
+ mandatory=False, allow_empty=True, size=25):
Attribute.__init__(self, name, title, help, default_value)
self._mandatory = mandatory
self._allow_empty = allow_empty
@@ -6125,8 +6126,10 @@ class FixedTextAttribute(TextAttribute):
# A text attribute that is stored in a Nagios custom macro
class NagiosTextAttribute(TextAttribute):
- def __init__(self, name, nag_name, title, help = None, default_value="",
mandatory = False, allow_empty=True):
- TextAttribute.__init__(self, name, title, help, default_value, mandatory,
allow_empty)
+ def __init__(self, name, nag_name, title, help=None, default_value="",
+ mandatory=False, allow_empty=True, size=25):
+ TextAttribute.__init__(self, name, title, help, default_value,
+ mandatory, allow_empty, size)
self.nag_name = nag_name
def nagios_name(self):