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@s@ddlmZmZddlmZdefd„ƒYZdS(i(t	NoMatchestMultipleMatches(tNamedExtensionManagert
DriverManagercBsteZdZedid	eed„Zed„ƒZe	ded	ed„ƒZ
d„Zd„Ze
d„ƒZRS(
sLoad a single plugin with a given name from the namespace.

    :param namespace: The namespace for the entry points.
    :type namespace: str
    :param name: The name of the driver 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 warn_on_missing_entrypoint: bool
    c		CsY|p|j}tt|ƒjd|d|gd|d|d|d|d|d|ƒdS(	Nt	namespacetnamestinvoke_on_loadtinvoke_argstinvoke_kwdston_load_failure_callbacktverify_requirementstwarn_on_missing_entrypoint(t_default_on_load_failuretsuperRt__init__(	tselfRtnameRRRR	R
R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pyR.s		cCs‚dS(N((t
drivermanagertepterr((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pyR@stTESTINGc
Cs7tt|ƒj|gd|d|d|d|ƒ}|S(sóConstruct a test DriverManager

        Test instances are passed a list of extensions to work from rather
        than loading them from entry points.

        :param extension: Pre-configured Extension instance
        :type extension: :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

        Rtpropagate_map_exceptionsR	R
(R
Rtmake_test_instance(tclst	extensionRRR	R
to((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pyRDs 	cCs™tt|ƒj|ƒ|jsH|jd}td|j|fƒ‚nt|jƒdkr•djd„|jDƒƒ}t	d|j|fƒ‚ndS(Nis"No %r driver found, looking for %rit,css|]}|jVqdS(N(tentry_point_target(t.0te((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pys	<genexpr>sssMultiple %r drivers found: %s(
R
Rt
_init_pluginst
extensionst_namesRRtlentjoinR(RRRtdiscovered_drivers((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pyRks	
cOs'|j|||Ž}|r#|dSdS(sAInvokes func() for the single loaded extension.

        The signature for func() should be::

            def func(ext, *args, **kwds):
                pass

        The first argument to func(), 'ext', is the
        :class:`~stevedore.extension.Extension` instance.

        Exceptions raised from within func() are logged and ignored.

        :param func: Callable to invoke for each extension.
        :param args: Variable arguments to pass to func()
        :param kwds: Keyword arguments to pass to func()
        :returns: List of values returned from func()
        iN(tmap(Rtfunctargstkwdstresults((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pyt__call__yscCs$|jd}|jr|jS|jS(s7Returns the driver being used by this manager.
        i(Rtobjtplugin(Rtext((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pytdrivers
(N(t__name__t
__module__t__doc__tFalsetNonetTrueRtstaticmethodRtclassmethodRRR)tpropertyR-(((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pyRs	#		N(t	exceptionRRtnamedRR(((sE/home/tvault/.virtenv/lib/python2.7/site-packages/stevedore/driver.pyt<module>
s