Refactor plugin initialization and enablement
authorSimo Sorce <simo@redhat.com>
Mon, 27 Oct 2014 15:25:46 +0000 (11:25 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Wed, 12 Nov 2014 22:47:25 +0000 (23:47 +0100)
commitb7b80c5c0fc1895e85aae3acbfcbbc593a42697f
tree530512524a374059a9648ace99c56146af95bf4d
parentc6b167fcf290c415b8d1903237fb5405b7213405
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>
25 files changed:
ipsilon/admin/common.py
ipsilon/admin/login.py
ipsilon/helpers/common.py
ipsilon/helpers/ipa.py
ipsilon/info/common.py
ipsilon/info/infoldap.py
ipsilon/info/nss.py
ipsilon/login/authfas.py
ipsilon/login/authform.py
ipsilon/login/authkrb.py
ipsilon/login/authldap.py
ipsilon/login/authpam.py
ipsilon/login/authtest.py
ipsilon/login/common.py
ipsilon/providers/common.py
ipsilon/providers/openid/extensions/ax.py
ipsilon/providers/openid/extensions/cla.py
ipsilon/providers/openid/extensions/common.py
ipsilon/providers/openid/extensions/fas_teams.py
ipsilon/providers/openid/extensions/sreg.py
ipsilon/providers/openid/extensions/teams.py
ipsilon/providers/openidp.py
ipsilon/providers/saml2idp.py
ipsilon/util/plugin.py
quickrun.py