Repository URL to install this package:
|
Version:
3.0.176 ▾
|
tvault-contego-common
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
stevedore
/
enabled.pyc
|
|---|
ó
¹EYc @ sE d d l Z d d l m Z e j e Z d e f d YZ d S( iÿÿÿÿNi ( t ExtensionManagert EnabledExtensionManagerc B s2 e Z d Z e d i e d e d Z d Z RS( sË Loads only plugins that pass a check function.
The check_func argument should return a boolean, with ``True``
indicating that the extension should be loaded and made available
and ``False`` indicating that the extension should be ignored.
:param namespace: The namespace for the entry points.
:type namespace: str
:param check_func: Function to determine which extensions to load.
:type check_func: callable, taking an :class:`Extension`
instance as argument
: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 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 C sG | | _ t t | j | d | d | d | d | d | d | d S( Nt invoke_on_loadt invoke_argst invoke_kwdst propagate_map_exceptionst on_load_failure_callbackt verify_requirements( t
check_funct superR t __init__( t selft namespaceR R R R R R R ( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/enabled.pyR
; s c C sU t t | j | | | | | } | rQ | j | rQ t j d | j d S| S( Ns ignoring extension %r( R R t _load_one_pluginR t LOGt debugt namet None( R t epR R R R t ext( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/enabled.pyR
K s ( N( t __name__t
__module__t __doc__t FalseR R
R
( ( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/enabled.pyR s $( t loggingt extensionR t getLoggerR R R ( ( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/enabled.pyt <module>
s