Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
¹EYc@sEddlZddlmZejeƒZdefd„ƒYZdS(iÿÿÿÿNi(tExtensionManagertNamedExtensionManagerc
BsqeZdZedieeddeed„	Zededed„ƒZeedd„Z	d„Z
d„ZRS(	smLoads 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 on_missing_entrypoints_callback: Callback function that will be
        called when one or more names cannot be found. The provided argument
        will be a subset of the 'names' parameter.
    :type on_missing_entrypoints_callback: function
    :param verify_requirements: Use setuptools to enforce the
        dependencies of the plugin(s) being loaded. Defaults to False.
    :type verify_requirements: bool
    :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	CsÂ|j||d|d|d|ƒ|j||||
ƒ}t|ƒtg|D]}
|
j^qMƒ|_|jr±|	rˆ|	|jƒq±|r±tjddj|jƒƒq±n|j|ƒdS(Nt
name_ordertpropagate_map_exceptionston_load_failure_callbacksCould not load %ss, (	t_init_attributest
_load_pluginstsettnamet_missing_namestLOGtwarningtjoint
_init_plugins(tselft	namespacetnamestinvoke_on_loadtinvoke_argstinvoke_kwdsRRRton_missing_entrypoints_callbacktverify_requirementstwarn_on_missing_entrypointt
extensionste((sD/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/named.pyt__init__Cs 		/		tTESTINGc	CsX|j|ƒ}g|D]}|j^q}|j||d|d|ƒ|j|ƒ|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__RRR
(	tclsRRRRRtoRR((sD/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/named.pytmake_test_instance[s 
cCsDtt|ƒj|d|d|ƒ||_tƒ|_||_dS(NRR(tsuperRRt_namesRR	t_name_order(RRRRRR((sD/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/named.pyRƒs	cCsXtt|ƒj|ƒ|jrTg|jD]}||jkr)||^q)|_ndS(N(RRR
R!R R	R(RRtn((sD/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/named.pyR
Žs	cCs8|j|jkrdStt|ƒj|||||ƒS(N(RR tNoneRRt_load_one_plugin(RtepRRRR((sD/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/named.pyR$•s
(N(t__name__t
__module__t__doc__tFalseR#tTrueRtclassmethodRRR
R$(((sD/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/named.pyRs"-	$		(tloggingt	extensionRt	getLoggerR&R
R(((sD/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/named.pyt<module>
s