/usr/lib/python2.6/site-packages/stevedore
NameSizeModeActions
example/-0755rm
example2/-0755rm
tests/-0755rm
dispatch.py89750644editdlrm
dispatch.pyc96270644editdlrm
driver.py54460644editdlrm
driver.pyc58860644editdlrm
enabled.py30140644editdlrm
enabled.pyc31320644editdlrm
exception.py3000644editdlrm
exception.pyc9460644editdlrm
extension.py113730644editdlrm
extension.pyc116570644editdlrm
hook.py26780644editdlrm
hook.pyc29210644editdlrm
named.py55540644editdlrm
named.pyc52090644editdlrm
sphinxext.py37900644editdlrm
sphinxext.pyc40140644editdlrm
__init__.py8260644editdlrm
__init__.pyc14110644editdlrm
Edit: /usr/lib/python2.6/site-packages/stevedore/extension.pyc (11657B)
Ñò yDVc@s]dZddkZddkZeieƒZdefd„ƒYZdefd„ƒYZdS(sExtensionManager iÿÿÿÿNt ExtensioncBs&eZdZd„Zed„ƒZRS(s•Book-keeping object for tracking extensions. The arguments passed to the constructor are saved as attributes of the instance using the same names, and can be accessed by the callables passed to :meth:`map` or when iterating over an :class:`ExtensionManager` directly. :param name: The entry point name. :type name: str :param entry_point: The EntryPoint instance returned by :mod:`pkg_resources`. :type entry_point: EntryPoint :param plugin: The value returned by entry_point.load() :param obj: The object returned by ``plugin(*args, **kwds)`` if the manager invoked the extension on load. cCs(||_||_||_||_dS(N(tnamet entry_pointtplugintobj(tselfRRRR((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyt__init__s   cCsd|ii|iidfS(sÆThe module and attribute referenced by this extension's entry_point. :return: A string representation of the target of the entry point in 'dotted.module:object' format. s%s:%si(Rt module_nametattrs(R((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pytentry_point_target%s (t__name__t __module__t__doc__RtpropertyR (((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyR s tExtensionManagercBsËeZdZedheded„Zededed„ƒZedd„Zd„Z hZ d„Z d„Z d„Z d „Zd „Zed „ƒZd „Zd „Zd„Zd„Zd„ZRS(sWBase class for all of the other managers. :param namespace: The namespace for the entry points. :type namespace: 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 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 CsB|i|d|d|ƒ|i||||ƒ}|i|ƒdS(Ntpropagate_map_exceptionston_load_failure_callback(t_init_attributest _load_pluginst _init_plugins( Rt namespacetinvoke_on_loadt invoke_argst invoke_kwdsRRtverify_requirementst extensions((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyRNs  tTESTINGcCs9|i|ƒ}|i|d|d|ƒ|i|ƒ|S(sConstruct a test ExtensionManager Test instances are passed a list of extensions to work from rather than loading them from entry points. :param extensions: Pre-configured Extension instances to use :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: When calling map, controls 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__RR(tclsRRRRRto((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pytmake_test_instance_s   cCs||_||_||_dS(N(RRt_on_load_failure_callback(RRRR((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyR†s  cCs||_d|_dS(N(RtNonet_extensions_by_name(RR((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyRŒs cCsA||ijo&tti|ƒƒ}||i|R?((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyt_call_extension_methodãscOs|i|i|||ŽS(sÊIterate over the extensions invoking a method by name. This is equivalent of using :meth:`map` with func set to `lambda x: x.obj.method_name()` while being more convenient. Exceptions raised from within the called method are propagated up and processing stopped if self.propagate_map_exceptions is True, otherwise they are logged and ignored. .. versionadded:: 0.12 :param method_name: The extension method name to call for each extension. :param args: Variable arguments to pass to method :param kwds: Keyword arguments to pass to method :returns: List of values returned from methods (RARE(RRDR>R?((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyt map_methodçs cCsjy|||||ŽƒWnItj o=}|io‚qftid|i|ƒti|ƒnXdS(Nserror calling %r: %s(R.RR(R/RR0(Rtresponse_callbackR=R9R>R?R3((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyR<ýs cCs t|iƒS(s¬Produce iterator for the manager. Iterating over an ExtensionManager produces the :class:`Extension` instances in the order they would be invoked. (titerR(R((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyt__iter__scCsO|idjo4h}x|iD]}|||iReturn true if name is in list of enabled extensions. c3s"x|]}|iˆjVqWdS(N(R(t.0RC(R(s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pys s (tanyR(RR((Rs6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyt __contains__s(N(R R R tFalseR Rt classmethodRRRR"R'RR*R:RAt staticmethodRERFR<RIRKRN(((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyR0s6 #          ( R R$tloggingt getLoggerR R(tobjectRR(((s6/tmp/pip-build-lt8jXN/stevedore/stevedore/extension.pyts   $