From 4fe03f5e17dfe9d4478a75dfada2282535c989fe Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Sun, 26 Oct 2008 23:53:44 -0600 Subject: Added API.load_plugins() place-holder, which cascades call to API.bootstrap() --- ipalib/plugable.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ipalib/plugable.py') diff --git a/ipalib/plugable.py b/ipalib/plugable.py index f0121433..4c0b175f 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') -- cgit