Repository URL to install this package:
|
Version:
3.4.52 ▾
|
ó
¹EYc @ s* d d l m Z d e f d YZ d S( i ( t NamedExtensionManagert HookManagerc B sG e Z d Z e d i d e d e d Z e e d d Z d Z RS( s| Coordinate execution of multiple extensions using a common name.
:param namespace: The namespace for the entry points.
:type namespace: str
:param name: The name of the hooks to load.
:type name: 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 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
:type on_missing_entrypoints_callback: function
:param verify_requirements: Use setuptools to enforce the
dependencies of the plugin(s) being loaded. Defaults to False.
:param warn_on_missing_entrypoint: Flag to control whether failing
to load a plugin is reported via a log mess. Only applies if
on_missing_entrypoints_callback is None.
:type warn_on_missing_entrypoint: bool
c
C sJ t t | j | | g d | d | d | d | d | d | d | d S( Nt invoke_on_loadt invoke_argst invoke_kwdst on_load_failure_callbackt on_missing_entrypoints_callbackt verify_requirementst warn_on_missing_entrypoint( t superR t __init__(
t selft namespacet nameR R R R R R R ( ( sC /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/hook.pyR
4 s c C s6 t t | j | | d | d | | d | _ d S( Nt propagate_map_exceptionsR i ( R R t _init_attributest _name( R R t namest
name_orderR R ( ( sC /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/hook.pyR I s
c C s% | | j k r t | n | j S( só Return the named extensions.
Accessing a HookManager as a dictionary (``em['name']``)
produces a list of the :class:`Extension` instance(s) with the
specified name, in the order they would be invoked by map().
( R t KeyErrort
extensions( R R
( ( sC /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/hook.pyt __getitem__R s ( N( t __name__t
__module__t __doc__t Falset NoneR
R R ( ( ( sC /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/hook.pyR s "
N( t namedR R ( ( ( sC /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/hook.pyt <module>
s