Module: check_mk
Branch: master
Commit: ca444481810a8b2e2c9cc43bb27453047e97560f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ca444481810a8b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 24 17:26:42 2018 +0200
Fixed issue caused by recent plugin refactoring
Change-Id: I830f3351a7c97d1dc75192562d51d802eeadaedb
---
cmk/gui/plugins/userdb/user_attributes.py | 3 ++-
cmk/gui/plugins/userdb/utils.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/cmk/gui/plugins/userdb/user_attributes.py
b/cmk/gui/plugins/userdb/user_attributes.py
index 728f318..db08f37 100644
--- a/cmk/gui/plugins/userdb/user_attributes.py
+++ b/cmk/gui/plugins/userdb/user_attributes.py
@@ -156,7 +156,8 @@ class StartURLUserAttribute(UserAttribute):
@user_attribute_registry.register
class UIThemeUserAttribute(UserAttribute):
- def name(self):
+ @classmethod
+ def name(cls):
return "ui_theme"
diff --git a/cmk/gui/plugins/userdb/utils.py b/cmk/gui/plugins/userdb/utils.py
index f64f139..5872229 100644
--- a/cmk/gui/plugins/userdb/utils.py
+++ b/cmk/gui/plugins/userdb/utils.py
@@ -139,8 +139,9 @@ class UserAttribute(object):
__metaclass__ = abc.ABCMeta
+ @classmethod
@abc.abstractmethod
- def name(self):
+ def name(cls):
# type: () -> bytes
raise NotImplementedError()