diff options
author | Jan Cholasta <jcholast@redhat.com> | 2015-06-24 15:14:54 +0000 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-07-01 13:05:30 +0000 |
commit | f87ba5ee080ebf24d2420d105aa4026e844439db (patch) | |
tree | 3464ff0affb31864785cc98dbcf6b0b4bdccd117 /ipalib/frontend.py | |
parent | e21dad4e1c37bc171a4bc6095a8c9bdd2cc53f5c (diff) | |
download | freeipa-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 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 19190c378..0b42cb63e 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -27,7 +27,7 @@ from distutils import version from ipapython.version import API_VERSION from ipapython.ipa_log_manager import root_logger from base import NameSpace -from plugable import Plugin, Registry, is_production_mode +from plugable import Plugin, is_production_mode from parameters import create_param, Param, Str, Flag, Password from output import Output, Entry, ListOfEntries from text import _ @@ -40,9 +40,6 @@ from textwrap import wrap RULE_FLAG = 'validation_rule' -register = Registry() - - def rule(obj): assert not hasattr(obj, RULE_FLAG) setattr(obj, RULE_FLAG, True) @@ -369,7 +366,6 @@ class HasParam(Plugin): setattr(self, name, namespace) -@register.base() class Command(HasParam): """ A public IPA atomic operation. @@ -1124,7 +1120,6 @@ class Local(Command): return self.forward(*args, **options) -@register.base() class Object(HasParam): finalize_early = False @@ -1283,7 +1278,6 @@ class Attribute(Plugin): super(Attribute, self)._on_finalize() -@register.base() class Method(Attribute, Command): """ A command with an associated object. @@ -1370,7 +1364,6 @@ class Method(Attribute, Command): yield param -@register.base() class Updater(Plugin): """ An LDAP update with an associated object (always update). |