/usr/lib/python2.6/site-packages/stevedore
Edit: /usr/lib/python2.6/site-packages/stevedore/hook.pyc (2921B)
Ñò
yDVc @ s* d d k l Z d e f d „ ƒ YZ d S( i ( t NamedExtensionManagert HookManagerc B sA e Z d Z e d h 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
c
C s> t t | ƒ i | | g d | d | d | d | d | ƒd S( Nt invoke_on_loadt invoke_argst invoke_kwdst on_load_failure_callbackt verify_requirements( t superR t __init__( t selft namespacet nameR R R R R ( ( s1 /tmp/pip-build-lt8jXN/stevedore/stevedore/hook.pyR s c C s6 t t | ƒ i | | d | d | ƒ| d | _ d S( Nt propagate_map_exceptionsR i ( R R t _init_attributest _name( R R
t namest
name_orderR R ( ( s1 /tmp/pip-build-lt8jXN/stevedore/stevedore/hook.pyR
. s
c C s' | | i j o t | ƒ ‚ n | i 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 ( ( s1 /tmp/pip-build-lt8jXN/stevedore/stevedore/hook.pyt __getitem__7 s ( N( t __name__t
__module__t __doc__t Falset NoneR R
R ( ( ( s1 /tmp/pip-build-lt8jXN/stevedore/stevedore/hook.pyR s N( t namedR R ( ( ( s1 /tmp/pip-build-lt8jXN/stevedore/stevedore/hook.pyt
s