diff options
author | Simo Sorce <simo@redhat.com> | 2014-10-27 11:25:46 -0400 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-11-12 23:47:25 +0100 |
commit | b7b80c5c0fc1895e85aae3acbfcbbc593a42697f (patch) | |
tree | 530512524a374059a9648ace99c56146af95bf4d /ipsilon/helpers/common.py | |
parent | c6b167fcf290c415b8d1903237fb5405b7213405 (diff) | |
download | ipsilon-b7b80c5c0fc1895e85aae3acbfcbbc593a42697f.tar.gz ipsilon-b7b80c5c0fc1895e85aae3acbfcbbc593a42697f.tar.xz ipsilon-b7b80c5c0fc1895e85aae3acbfcbbc593a42697f.zip |
Refactor plugin initialization and enablement
Move most plugin enablement and initialization code in plugin.py to
reduce code duplication and simplify and unifify plugin enablement
for all base plugin types (login, info, providers).
This patch breaks backwards compatibility as it changes how the list
of enabled plugins is stored in the database tables.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/helpers/common.py')
-rwxr-xr-x | ipsilon/helpers/common.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipsilon/helpers/common.py b/ipsilon/helpers/common.py index 6ec2819..f670bc6 100755 --- a/ipsilon/helpers/common.py +++ b/ipsilon/helpers/common.py @@ -20,8 +20,11 @@ from ipsilon.util.plugin import PluginInstaller +FACILITY = 'environment_helpers' + + class EnvHelpersInstall(object): def __init__(self): - pi = PluginInstaller(EnvHelpersInstall) + pi = PluginInstaller(EnvHelpersInstall, FACILITY) self.plugins = pi.get_plugins() |