diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-26 23:53:44 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-26 23:53:44 -0600 |
commit | 4fe03f5e17dfe9d4478a75dfada2282535c989fe (patch) | |
tree | 65fd4b6961172b92e5ecd7d15100a866a9623a8c /ipalib | |
parent | 6b8abb0d78a8d86d7ca52083a267fe226bf74656 (diff) | |
download | freeipa-4fe03f5e17dfe9d4478a75dfada2282535c989fe.tar.gz freeipa-4fe03f5e17dfe9d4478a75dfada2282535c989fe.tar.xz freeipa-4fe03f5e17dfe9d4478a75dfada2282535c989fe.zip |
Added API.load_plugins() place-holder, which cascades call to API.bootstrap()
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugable.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py index f01214332..4c0b175f5 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -735,9 +735,22 @@ class API(DictProxy): """ self.__doing('bootstrap') + def load_plugins(self, dry_run=False): + """ + Load plugins from all standard locations. + + `API.bootstrap` will automatically be called if it hasn't been + already. + """ + self.__doing('load_plugins') + self.__do_if_not_done('bootstrap') + def finalize(self): """ Finalize the registration, instantiate the plugins. + + `API.bootstrap` will automatically be called if it hasn't been + already. """ self.__doing('finalize') self.__do_if_not_done('bootstrap') |