Module: check_mk
Branch: master
Commit: dd01b73e4323d3bda8e69939c2df05aef9e4870d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dd01b73e4323d3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jun 3 11:02:07 2011 +0200
WATO: always show search button
---
web/htdocs/wato.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3724ea2..3a777d4 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1827,8 +1827,7 @@ def make_action_link_to(vars, folder_path, filename = None):
return make_link_to(vars + [("_transid", html.current_transid())],
folder_path, filename)
def search_button():
- if len(g_folder["files"]) > 0 or len(g_folder["folders"]) >
0:
- html.context_button(_("Search"), make_link([("mode",
"search")]))
+ html.context_button(_("Search"), make_link([("mode",
"search")]))
def changelog_button():
pending = parse_audit_log("pending")
@@ -2262,6 +2261,11 @@ class IPAddressAttribute(TextAttribute):
def __init__(self, name, title, help = None):
TextAttribute.__init__(self, name, title, help, "", mandatory = True)
+ def render_input(self, value):
+ if value == None:
+ value = ""
+ html.text_input("attr_" + self.name(), value, size=15)
+
def from_html_vars(self):
value = html.var("attr_" + self.name())
if not value: