Module: check_mk
Branch: master
Commit: c4e12e93134ae02f4dd8725d3a6a93d900799c64
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c4e12e93134ae0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 8 09:08:40 2016 +0100
Added missing referenced overridable methods and attributes
---
web/htdocs/crash_reporting.py | 1 +
web/htdocs/htmllib.py | 33 +++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/web/htdocs/crash_reporting.py b/web/htdocs/crash_reporting.py
index 5239c2f..7f9b9ce 100644
--- a/web/htdocs/crash_reporting.py
+++ b/web/htdocs/crash_reporting.py
@@ -430,6 +430,7 @@ def format_var_for_export(val, maxdepth=4):
# reporting it is totally ok to have some string representations of the objects.
class RobustJSONEncoder(json.JSONEncoder):
# Are there cases where no __str__ is available? if so, we should do something like
%r
+ # pylint: disable=method-hidden
def default(self, o):
return "%s" % o
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index a24fa4f..de12809 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -81,6 +81,7 @@ __builtin__.HTML = HTML
class html(GUITester):
def __init__(self):
GUITester.__init__(self)
+ self.cookies = {}
self.user = None
self.user_errors = {}
self.focus_object = None
@@ -190,6 +191,7 @@ class html(GUITester):
self.lowlevel_write(text)
+
def plug(self):
self.plugged = True
self.plugged_text = ''
@@ -1705,3 +1707,34 @@ class html(GUITester):
self.times[name] += elapsed
self.last_measurement = now
+
+ #
+ # To be overridden by subclasses
+ #
+
+ def lowlevel_write(self, text):
+ raise NotImplementedError()
+
+
+ def get_button_counts(self):
+ raise NotImplementedError()
+
+
+ def add_custom_style_sheet(self):
+ raise NotImplementedError()
+
+
+ def top_heading(self, title):
+ raise NotImplementedError()
+
+
+ def load_transids(self, lock=False):
+ raise NotImplementedError()
+
+
+ def save_transids(self, used_ids, unlock=False):
+ raise NotImplementedError()
+
+
+ def load_tree_states(self):
+ raise NotImplementedError()