/usr/lib/python2.6/site-packages/stevedore
NameSizeModeActions
example/-0755rm
example2/-0755rm
tests/-0755rm
dispatch.py89750644editdlrm
dispatch.pyc96270644editdlrm
driver.py54460644editdlrm
driver.pyc58860644editdlrm
enabled.py30140644editdlrm
enabled.pyc31320644editdlrm
exception.py3000644editdlrm
exception.pyc9460644editdlrm
extension.py113730644editdlrm
extension.pyc116570644editdlrm
hook.py26780644editdlrm
hook.pyc29210644editdlrm
named.py55540644editdlrm
named.pyc52090644editdlrm
sphinxext.py37900644editdlrm
sphinxext.pyc40140644editdlrm
__init__.py8260644editdlrm
__init__.pyc14110644editdlrm
Edit: /usr/lib/python2.6/site-packages/stevedore/named.pyc (5209B)
Ñò yDVc@s*ddklZdefd„ƒYZdS(i(tExtensionManagertNamedExtensionManagercBskeZdZedheeded„Zededed„ƒZeedd„Zd„Z d„Z RS( s†Loads only the named extensions. This is useful for explicitly enabling extensions in a configuration file, for example. :param namespace: The namespace for the entry points. :type namespace: str :param names: The names of the extensions to load. :type names: list(str) :param invoke_on_load: Boolean controlling whether to invoke the object returned by the entry point after the driver is loaded. :type invoke_on_load: bool :param invoke_args: Positional arguments to pass when invoking the object returned by the entry point. Only used if invoke_on_load is True. :type invoke_args: tuple :param invoke_kwds: Named arguments to pass when invoking the object returned by the entry point. Only used if invoke_on_load is True. :type invoke_kwds: dict :param name_order: If true, sort the loaded extensions to match the order used in ``names``. :type name_order: bool :param propagate_map_exceptions: Boolean controlling whether exceptions are propagated up through the map call or whether they are logged and then ignored :type propagate_map_exceptions: bool :param on_load_failure_callback: Callback function that will be called when a entrypoint can not be loaded. The arguments that will be provided when this is called (when an entrypoint fails to load) are (manager, entrypoint, exception) :type on_load_failure_callback: function :param verify_requirements: Use setuptools to enforce the dependencies of the plugin(s) being loaded. Defaults to False. :type verify_requirements: bool c CsK|i||d|d|d|ƒ|i|||| ƒ} |i| ƒdS(Nt name_ordertpropagate_map_exceptionston_load_failure_callback(t_init_attributest _load_pluginst _init_plugins( tselft namespacetnamestinvoke_on_loadt invoke_argst invoke_kwdsRRRtverify_requirementst extensions((s2/tmp/pip-build-lt8jXN/stevedore/stevedore/named.pyt__init__+s  tTESTINGc Cs`|i|ƒ}g}|D]}||iq~} |i|| d|d|ƒ|i|ƒ|S(sConstruct a test NamedExtensionManager Test instances are passed a list of extensions to use rather than loading them from entry points. :param extensions: Pre-configured Extension instances :type extensions: list of :class:`~stevedore.extension.Extension` :param namespace: The namespace for the manager; used only for identification since the extensions are passed in. :type namespace: str :param propagate_map_exceptions: Boolean controlling whether exceptions are propagated up through the map call or whether they are logged and then ignored :type propagate_map_exceptions: bool :param on_load_failure_callback: Callback function that will be called when a entrypoint can not be loaded. The arguments that will be provided when this is called (when an entrypoint fails to load) are (manager, entrypoint, exception) :type on_load_failure_callback: function :param verify_requirements: Use setuptools to enforce the dependencies of the plugin(s) being loaded. Defaults to False. :type verify_requirements: bool :return: The manager instance, initialized for testing RR(t__new__tnameRR( tclsRR RRRtot_[1]teR ((s2/tmp/pip-build-lt8jXN/stevedore/stevedore/named.pytmake_test_instance:s $ cCs8tt|ƒi|d|d|ƒ||_||_dS(NRR(tsuperRRt_namest _name_order(RR R RRR((s2/tmp/pip-build-lt8jXN/stevedore/stevedore/named.pyRbs   cCsStt|ƒi|ƒ|io/g}|iD]}|||q.~|_ndS(N(RRRRRR(RRRtn((s2/tmp/pip-build-lt8jXN/stevedore/stevedore/named.pyRls cCs:|i|ijodStt|ƒi|||||ƒS(N(RRtNoneRRt_load_one_plugin(RtepR R R R((s2/tmp/pip-build-lt8jXN/stevedore/stevedore/named.pyRrs  (N( t__name__t __module__t__doc__tFalseRRt classmethodRRRR(((s2/tmp/pip-build-lt8jXN/stevedore/stevedore/named.pyRs%  $  N(t extensionRR(((s2/tmp/pip-build-lt8jXN/stevedore/stevedore/named.pyts