diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-03-03 15:12:19 +0100 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-05-25 16:06:26 +0200 |
commit | bed546ee8220992084520737320a646dc47ec1e3 (patch) | |
tree | ee04abce4857196b44c2c463b06aa10147eea135 /ipaserver/plugins/xmlserver.py | |
parent | 0d62968b6f853246d38b06e8378cb9cae7f9bbb4 (diff) | |
download | freeipa-bed546ee8220992084520737320a646dc47ec1e3.tar.gz freeipa-bed546ee8220992084520737320a646dc47ec1e3.tar.xz freeipa-bed546ee8220992084520737320a646dc47ec1e3.zip |
ipalib, ipaserver: migrate all plugins to Registry-based registration
Do not use the deprecated API.register method.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/plugins/xmlserver.py')
-rw-r--r-- | ipaserver/plugins/xmlserver.py | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/ipaserver/plugins/xmlserver.py b/ipaserver/plugins/xmlserver.py index 7460ead69..cc496544b 100644 --- a/ipaserver/plugins/xmlserver.py +++ b/ipaserver/plugins/xmlserver.py @@ -22,16 +22,19 @@ Loads WSGI server plugins. """ -from ipalib import api +from ipalib import Registry, api + +register = Registry() + if 'in_server' in api.env and api.env.in_server is True: from ipaserver.rpcserver import wsgi_dispatch, xmlserver, jsonserver_kerb, jsonserver_session, login_kerberos, login_password, change_password, sync_token, xmlserver_session - api.register(wsgi_dispatch) - api.register(xmlserver) - api.register(jsonserver_kerb) - api.register(jsonserver_session) - api.register(login_kerberos) - api.register(login_password) - api.register(change_password) - api.register(sync_token) - api.register(xmlserver_session) + register()(wsgi_dispatch) + register()(xmlserver) + register()(jsonserver_kerb) + register()(jsonserver_session) + register()(login_kerberos) + register()(login_password) + register()(change_password) + register()(sync_token) + register()(xmlserver_session) |