summaryrefslogtreecommitdiffstats
path: root/ipaserver/advise/base.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2015-06-24 15:14:54 +0000
committerJan Cholasta <jcholast@redhat.com>2015-07-01 13:05:30 +0000
commitf87ba5ee080ebf24d2420d105aa4026e844439db (patch)
tree3464ff0affb31864785cc98dbcf6b0b4bdccd117 /ipaserver/advise/base.py
parente21dad4e1c37bc171a4bc6095a8c9bdd2cc53f5c (diff)
downloadfreeipa-f87ba5ee080ebf24d2420d105aa4026e844439db.tar.gz
freeipa-f87ba5ee080ebf24d2420d105aa4026e844439db.tar.xz
freeipa-f87ba5ee080ebf24d2420d105aa4026e844439db.zip
plugable: Move plugin base class and override logic to API
Each API object now maintains its own view of registered plugins. This change removes the need to register plugin base classes. This reverts commit 2db741e847c60d712dbc8ee1cd65a978a78eb312. https://fedorahosted.org/freeipa/ticket/3090 https://fedorahosted.org/freeipa/ticket/5073 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipaserver/advise/base.py')
-rw-r--r--ipaserver/advise/base.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ipaserver/advise/base.py b/ipaserver/advise/base.py
index 0c683588f..ab8323c53 100644
--- a/ipaserver/advise/base.py
+++ b/ipaserver/advise/base.py
@@ -19,14 +19,12 @@
import os
from ipalib import api
-from ipalib.plugable import Plugin, Registry, API
+from ipalib.plugable import Plugin, API
from ipalib.errors import ValidationError
from ipapython import admintool
from textwrap import wrap
from ipapython.ipa_log_manager import log_mgr
-register = Registry()
-
"""
To add configuration instructions for a new use case, define a new class that
@@ -97,7 +95,6 @@ class _AdviceOutput(object):
self.content.append(line)
-@register.base()
class Advice(Plugin):
"""
Base class for advices, plugins for ipa-advise.