Module: check_mk
Branch: master
Commit: 4035524b24e86338bfcff9c7a01737d996281e39
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4035524b24e863…
Author: Andreas <ab(a)mathias-kettner.de>
Date: Fri Jun 29 10:46:05 2018 +0200
moved APICallCollection base class to correct file
Change-Id: Ie35f52731e3fc7673726a479266b31a3884d7120
---
web/htdocs/webapi.py | 15 +++++++++++++++
web/plugins/webapi/webapi.py | 13 -------------
2 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/web/htdocs/webapi.py b/web/htdocs/webapi.py
index 8e57854..a920fc4 100644
--- a/web/htdocs/webapi.py
+++ b/web/htdocs/webapi.py
@@ -46,6 +46,21 @@ else:
api_actions = {}
loaded_with_language = False
+
+class APICallCollection(object):
+ @classmethod
+ def all_classes(cls):
+ classes = {}
+ for subclass in cls.__subclasses__(): # pylint: disable=no-member
+ classes[subclass.__name__] = subclass
+
+ return classes.values()
+
+
+ def get_api_calls(self):
+ raise NotImplementedError("This API collection does not register any API
call")
+
+
def load_plugins(force):
global loaded_with_language
if loaded_with_language == current_language and not force:
diff --git a/web/plugins/webapi/webapi.py b/web/plugins/webapi/webapi.py
index 02291c7..6df2128 100644
--- a/web/plugins/webapi/webapi.py
+++ b/web/plugins/webapi/webapi.py
@@ -131,19 +131,6 @@ def add_configuration_hash(response, configuration_object):
-class APICallCollection(object):
- @classmethod
- def all_classes(cls):
- classes = {}
- for subclass in cls.__subclasses__(): # pylint: disable=no-member
- classes[subclass.__name__] = subclass
-
- return classes.values()
-
-
- def get_api_calls(self):
- raise NotImplementedError("This API collection does not register any API
call")
-
#.
# .--Folders-------------------------------------------------------------.