Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/zope/interface/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/zope/interface/interfaces.pyc
�
�/Qc@s�dZdZddlmZddlmZddlmZddlmZed�Z	defd	��YZ
d
e
fd��YZdefd
��YZdefd��YZ
de
e
fd��YZde
fd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZee�defd��Y�Zd efd!��YZd"efd#��YZd$efd%��YZd&efd'��YZd(efd)��YZd*efd+��YZd,efd-��YZd.efd/��YZ ee �d0efd1��Y�Z!d2e fd3��YZ"ee"�d4e!fd5��Y�Z#d6e fd7��YZ$ee$�d8e!fd9��Y�Z%d:efd;��YZ&d<ee&fd=��YZ'd>S(?sInterface Package Interfaces
trestructuredtexti����(t	Attribute(t	Interface(timplementer(t_uttIElementcBsSeZdZedd�Zedd�Zd�Zd	d�Zd�Zd�ZRS(
s=Objects that have basic documentation and tagged values.
    t__name__sThe object namet__doc__sThe object doc stringcCsdS(scReturns the value associated with `tag`.

        Raise a `KeyError` of the tag isn't set.
        N((ttag((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytgetTaggedValue scCsdS(siReturns the value associated with `tag`.

        Return the default value of the tag isn't set.
        N((R	tdefault((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytqueryTaggedValue&scCsdS(sReturns a list of all tags.N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytgetTaggedValueTags,scCsdS(sAssociates `value` with `key`.N((R	tvalue((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytsetTaggedValue/sN(	Rt
__module__RRR
tNoneRR
R(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRs		t
IAttributecBseZdZedd�ZRS(sAttribute descriptorst	interfaces@Stores the interface instance in which the attribute is located.(RRRRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR3stIMethodcBs eZdZd�Zd�ZRS(sMethod attributescCsdS(s�Returns the signature information.

        This method returns a dictionary with the following keys:

        o `positional` - All positional arguments.

        o `required` - A list of all required arguments.

        o `optional` - A list of all optional arguments.

        o `varargs` - The name of the varargs argument.

        o `kwargs` - The name of the kwargs argument.
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytgetSignatureInfo>scCsdS(s�Return a signature string suitable for inclusion in documentation.

        This method returns the function signature string. For example, if you
        have `func(a, b, c=1, d='f')`, then the signature string is `(a, b,
        c=1, d='f')`.
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytgetSignatureStringNs(RRRRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR;s	tISpecificationcBsqeZdZd�Zd�Zd�Zed�Zd
d�Z	e
d�Ze
d�Ze
d�Z
d
d	�ZRS(s Object Behavioral specificationscCsdS(s�Test whether the interface is implemented by the object

        Return true of the object asserts that it implements the
        interface, including asserting that it implements an extended
        interface.
        N((tobject((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt
providedByYscCsdS(s�Test whether the interface is implemented by instances of the class

        Return true of the class asserts that its instances implement the
        interface, including asserting that they implement an extended
        interface.
        N((tclass_((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt
implementedByascCsdS(s=Test whether the specification is or extends another
        N((tother((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytisOrExtendsiscCsdS(s�Test whether a specification extends another

        The specification extends other if it has other as a base
        interface or if one of it's bases extends other.

        If strict is false, then the specification extends itself.
        N((Rtstrict((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytextendsmscCsdS(s/Return a weakref to the specification

        This method is, regrettably, needed to allow weakrefs to be
        computed to security-proxied specifications.  While the
        zope.interface package does not require zope.security or
        zope.proxy, it has to be able to coexist with it.

        N((tcallback((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytweakrefvssoBase specifications

    A tuple if specifications from which this specification is
    directly derived.

    s�Specification-resolution order

    A tuple of the specification and all of it's ancestor
    specifications from most specific to least specific.

    (This is similar to the method-resolution order for new-style classes.)
    sInterface-resolution order

    A tuple of the of the specification's ancestor interfaces from
    most specific to least specific.  The specification itself is
    included if it is an interface.

    (This is similar to the method-resolution order for new-style classes.)
    cCsdS(s|Look up the description for a name

        If the named attribute is not defined, the default is
        returned.
        N((tnameR((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytget�sN(RRRRRRtTrueRRR!Rt	__bases__t__sro__t__iro__R#(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRVs				
			t
IInterfacecBsbeZdZed�Zed�Zd�Zd�Zd	d�Z	d�Z
d�Zed�ZRS(
sEInterface objects

    Interface objects describe the behavior of an object by containing
    useful information about the object.  This information includes:

      o Prose documentation about the object.  In Python terms, this
        is called the "doc string" of the interface.  In this element,
        you describe how the object works in prose language and any
        other useful information about the object.

      o Descriptions of attributes.  Attribute descriptions include
        the name of the attribute and prose documentation describing
        the attributes usage.

      o Descriptions of methods.  Method descriptions can include:

        - Prose "doc string" documentation about the method and its
          usage.

        - A description of the methods arguments; how many arguments
          are expected, optional arguments and their default values,
          the position or arguments in the signature, whether the
          method accepts arbitrary arguments and whether the method
          accepts arbitrary keyword arguments.

      o Optional tagged data.  Interface objects (and their attributes and
        methods) can have optional, application specific tagged data
        associated with them.  Examples uses for this are examples,
        security assertions, pre/post conditions, and other possible
        information you may want to associate with an Interface or its
        attributes.

    Not all of this information is mandatory.  For example, you may
    only want the methods of your interface to have prose
    documentation and not describe the arguments of the method in
    exact detail.  Interface objects are flexible and let you give or
    take any of these components.

    Interfaces are created with the Python class statement using
    either Interface.Interface or another interface, as in::

      from zope.interface import Interface

      class IMyInterface(Interface):
        '''Interface documentation'''

        def meth(arg1, arg2):
            '''Documentation for meth'''

        # Note that there is no self argument

     class IMySubInterface(IMyInterface):
        '''Interface documentation'''

        def meth2():
            '''Documentation for meth2'''

    You use interfaces in two ways:

    o You assert that your object implement the interfaces.

      There are several ways that you can assert that an object
      implements an interface:

      1. Call zope.interface.implements in your class definition.

      2. Call zope.interfaces.directlyProvides on your object.

      3. Call 'zope.interface.classImplements' to assert that instances
         of a class implement an interface.

         For example::

           from zope.interface import classImplements

           classImplements(some_class, some_interface)

         This approach is useful when it is not an option to modify
         the class source.  Note that this doesn't affect what the
         class itself implements, but only what its instances
         implement.

    o You query interface meta-data. See the IInterface methods and
      attributes for details.

    cCsdS(seGet the interface attribute names

        Return a sequence of the names of the attributes, including
        methods, included in the interface definition.

        Normally, only directly defined attributes are included. If
        a true positional or keyword argument is given, then
        attributes defined by base classes will be included.
        N((tall((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytnames�scCsdS(s�Get the interface attribute names and descriptions

        Return a sequence of the names and descriptions of the
        attributes, including methods, as name-value pairs, included
        in the interface definition.

        Normally, only directly defined attributes are included. If
        a true positional or keyword argument is given, then
        attributes defined by base classes will be included.
        N((R)((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytnamesAndDescriptionsscCsdS(smGet the description for a name

        If the named attribute is not defined, a KeyError is raised.
        N((R"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt__getitem__scCsdS(s�Get the description for the name if it was defined by the interface

        If the interface doesn't define the name, returns None.
        N((R"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytdirectscCsdS(s
Validate invariants

        Validate object to defined invariants.  If errors is None,
        raises first Invalid error; if errors is a list, appends all errors
        to list, then raises Invalid with the errors as the first element
        of the "args" tuple.N((tobjterrors((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytvalidateInvariantsscCsdS(s1Test whether the name is defined by the interfaceN((R"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt__contains__#scCsdS(s�Return an iterator over the names defined by the interface

        The names iterated include all of the names defined by the
        interface directly and indirectly by base interfaces.
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt__iter__&ss-The name of the module defining the interfaceN(
RRRtFalseR*R+R,R-RR0R1R2R(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR(�sV				tIDeclarationcBsDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s�Interface declaration

    Declarations are used to express the interfaces implemented by
    classes or provided by objects.
    cCsdS(s�Test whether an interface is in the specification

        Return true if the given interface is one of the interfaces in
        the specification and false otherwise.
        N((R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR16scCsdS(sCReturn an iterator for the interfaces in the specification
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR2=scCsdS(sReturn an iterator of all included and extended interfaces

        An iterator is returned for all interfaces either included in
        or extended by interfaces included in the specifications
        without duplicates. The interfaces are in "interface
        resolution order". The interface resolution order is such that
        base interfaces are listed after interfaces that extend them
        and, otherwise, interfaces are included in the order that they
        were defined in the specification.
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt	flattenedAscCsdS(s�Create an interface specification with some interfaces excluded

        The argument can be an interface or an interface
        specifications.  The interface or interfaces given in a
        specification are subtracted from the interface specification.

        Removing an interface that is not in the specification does
        not raise an error. Doing so has no effect.

        Removing an interface also removes sub-interfaces of the interface.

        N((t
interfaces((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt__sub__MscCsdS(szCreate an interface specification with some interfaces added

        The argument can be an interface or an interface
        specifications.  The interface or interfaces given in a
        specification are added to the interface specification.

        Adding an interface that is already in the specification does
        not raise an error. Doing so has no effect.
        N((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt__add__[scCsdS(sHReturn a true value of the interface specification is non-empty
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt__nonzero__fs(	RRRR1R2R5R7R8R9(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR4/s					tIInterfaceDeclarationcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�ZRS(sdDeclare and check the interfaces of objects

    The functions defined in this interface are used to declare the
    interfaces that objects provide and to query the interfaces that have
    been declared.

    Interfaces can be declared for objects in two ways:

    - Interfaces are declared for instances of the object's class

    - Interfaces are declared for the object directly.

    The interfaces declared for an object are, therefore, the union of
    interfaces declared for the object directly and the interfaces
    declared for instances of the object's class.

    Note that we say that a class implements the interfaces provided
    by it's instances.  An instance can also provide interfaces
    directly.  The interfaces provided by an object are the union of
    the interfaces provided directly and the interfaces implemented by
    the class.
    cCsdS(s�Return the interfaces provided by an object

        This is the union of the interfaces directly provided by an
        object and interfaces implemented by it's class.

        The value returned is an IDeclaration.
        N((tob((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR�scCsdS(sqReturn the interfaces implemented for a class' instances

        The value returned is an IDeclaration.
        N((R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR�scGsdS(sODeclare additional interfaces implemented for instances of a class

        The arguments after the class are one or more interfaces or
        interface specifications (IDeclaration objects).

        The interfaces given (including the interfaces in the
        specifications) are added to any interfaces previously
        declared.

        Consider the following example::

          class C(A, B):
             ...

          classImplements(C, I1, I2)


        Instances of ``C`` provide ``I1``, ``I2``, and whatever interfaces
        instances of ``A`` and ``B`` provide.
        N((RR6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytclassImplements�scGsdS(s�Create a decorator for declaring interfaces implemented by a facory

        A callable is returned that makes an implements declaration on
        objects passed to it.
        N((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR�scGsdS(swDeclare the only interfaces implemented by instances of a class

        The arguments after the class are one or more interfaces or
        interface specifications (IDeclaration objects).

        The interfaces given (including the interfaces in the
        specifications) replace any previous declarations.

        Consider the following example::

          class C(A, B):
             ...

          classImplements(C, IA, IB. IC)
          classImplementsOnly(C. I1, I2)

        Instances of ``C`` provide only ``I1``, ``I2``, and regardless of
        whatever interfaces instances of ``A`` and ``B`` implement.
        N((RR6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytclassImplementsOnly�scGsdS(s�Create a decorator for declaring the only interfaces implemented 
        
        A callable is returned that makes an implements declaration on
        objects passed to it.
        N((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytimplementer_only�scCsdS(stReturn the interfaces directly provided by the given object

        The value returned is an IDeclaration.
        N((R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytdirectlyProvidedBy�scGsdS(sDeclare interfaces declared directly for an object

        The arguments after the object are one or more interfaces or
        interface specifications (IDeclaration objects).

        The interfaces given (including the interfaces in the
        specifications) replace interfaces previously
        declared for the object.

        Consider the following example::

          class C(A, B):
             ...

          ob = C()
          directlyProvides(ob, I1, I2)

        The object, ``ob`` provides ``I1``, ``I2``, and whatever interfaces
        instances have been declared for instances of ``C``.

        To remove directly provided interfaces, use ``directlyProvidedBy`` and
        subtract the unwanted interfaces. For example::

          directlyProvides(ob, directlyProvidedBy(ob)-I2)

        removes I2 from the interfaces directly provided by
        ``ob``. The object, ``ob`` no longer directly provides ``I2``,
        although it might still provide ``I2`` if it's class
        implements ``I2``.

        To add directly provided interfaces, use ``directlyProvidedBy`` and
        include additional interfaces.  For example::

          directlyProvides(ob, directlyProvidedBy(ob), I2)

        adds I2 to the interfaces directly provided by ob.
        N((RR6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytdirectlyProvides�scGsdS(s�Declare additional interfaces directly for an object::

          alsoProvides(ob, I1)

        is equivalent to::

          directlyProvides(ob, directlyProvidedBy(ob), I1)
        N((RR6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytalsoProvides�scCsdS(s{Remove an interface from the list of an object's directly
        provided interfaces::

          noLongerProvides(ob, I1)

        is equivalent to::

          directlyProvides(ob, directlyProvidedBy(ob)-I1)

        with the exception that if ``I1`` is an interface that is
        provided by ``ob`` through the class's implementation,
        ValueError is raised.
        N((RR((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytnoLongerProvidesscGsdS(s�Declare interfaces implemented by instances of a class

        This function is called in a class definition (Python 2.x only).

        The arguments are one or more interfaces or interface
        specifications (IDeclaration objects).

        The interfaces given (including the interfaces in the
        specifications) are added to any interfaces previously
        declared.

        Previous declarations include declarations for base classes
        unless implementsOnly was used.

        This function is provided for convenience. It provides a more
        convenient way to call classImplements. For example::

          implements(I1)

        is equivalent to calling::

          classImplements(C, I1)

        after the class has been created.

        Consider the following example (Python 2.x only)::

          class C(A, B):
            implements(I1, I2)


        Instances of ``C`` implement ``I1``, ``I2``, and whatever interfaces
        instances of ``A`` and ``B`` implement.
        N((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt
implementsscGsdS(skDeclare the only interfaces implemented by instances of a class

        This function is called in a class definition (Python 2.x only).

        The arguments are one or more interfaces or interface
        specifications (IDeclaration objects).

        Previous declarations including declarations for base classes
        are overridden.

        This function is provided for convenience. It provides a more
        convenient way to call classImplementsOnly. For example::

          implementsOnly(I1)

        is equivalent to calling::

          classImplementsOnly(I1)

        after the class has been created.

        Consider the following example (Python 2.x only)::

          class C(A, B):
            implementsOnly(I1, I2)


        Instances of ``C`` implement ``I1``, ``I2``, regardless of what
        instances of ``A`` and ``B`` implement.
        N((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytimplementsOnly4scGsdS(s�Declare interfaces provided directly by a class

        This function is called in a class definition.

        The arguments are one or more interfaces or interface
        specifications (IDeclaration objects).

        The given interfaces (including the interfaces in the
        specifications) are used to create the class's direct-object
        interface specification.  An error will be raised if the module
        class has an direct interface specification.  In other words, it is
        an error to call this function more than once in a class
        definition.

        Note that the given interfaces have nothing to do with the
        interfaces implemented by instances of the class.

        This function is provided for convenience. It provides a more
        convenient way to call directlyProvides for a class. For example::

          classProvides(I1)

        is equivalent to calling::

          directlyProvides(theclass, I1)

        after the class has been created.
        N((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt
classProvidesTscGsdS(s*A class decorator version of classProvidesN((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytproviderqscGsdS(sEDeclare interfaces provided by a module

        This function is used in a module definition.

        The arguments are one or more interfaces or interface
        specifications (IDeclaration objects).

        The given interfaces (including the interfaces in the
        specifications) are used to create the module's direct-object
        interface specification.  An error will be raised if the module
        already has an interface specification.  In other words, it is
        an error to call this function more than once in a module
        definition.

        This function is provided for convenience. It provides a more
        convenient way to call directlyProvides for a module. For example::

          moduleImplements(I1)

        is equivalent to::

          directlyProvides(sys.modules[__name__], I1)
        N((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytmoduleProvidestscGsdS(s�Create an interface specification

        The arguments are one or more interfaces or interface
        specifications (IDeclaration objects).

        A new interface specification (IDeclaration) with
        the given interfaces is returned.
        N((R6((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytDeclaration�s(RRRRRR<RR=R>R?R@RARBRCRDRERFRGRH(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR:js"									'	
		$	 			tIAdapterRegistrycBs�eZdZd�Zed�Zddd�Zedd�Zedd�Z	edd�Z
edd�Zd	�Zd
�Z
ed�Zed�Zed
�ZRS(s�Provide an interface-based registry for adapters

    This registry registers objects that are in some sense "from" a
    sequence of specification to an interface and a name.

    No specific semantics are assumed for the registered objects,
    however, the most common application will be to register factories
    that adapt objects providing required specifications to a provided
    interface.
    cCsdS(s�Register a value

        A value is registered for a *sequence* of required specifications, a
        provided interface, and a name.
        N((trequiredtprovidedR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregister�scCsdS(snReturn the component registered for the given interfaces and name

        Unlike the lookup method, this methods won't retrieve
        components registered for more specific required interfaces or
        less specific provided interfaces.

        If no component was registered exactly for the given
        interfaces and name, then None is returned.

        N((RJRKR"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt
registered�sRcCsdS(s�Lookup a value

        A value is looked up based on a *sequence* of required
        specifications, a provided interface, and a name.
        N((RJRKR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytlookup�scCsdS(sDAdapt a sequence of objects to a named, provided, interface
        N((tobjectsRKR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytqueryMultiAdapter�scCsdS(s�Lookup a value using a single required interface

        A value is looked up based on a single required
        specifications, a provided interface, and a name.
        N((RJRKR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytlookup1�scCsdS(s<Adapt an object using a registered adapter factory.
        N((RRKR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytqueryAdapter�scCsdS(s<Adapt an object using a registered adapter factory.
        N((RKRR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytadapter_hook�scCsdS(s�Find all adapters from the required to the provided interfaces

        An iterable object is returned that provides name-value two-tuples.
        N((RJRK((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt	lookupAll�scCsdS(s@Return the names for which there are registered objects
        N((RJRK((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR*�scCsdS(s�Register a subscriber

        A subscriber is registered for a *sequence* of required
        specifications, a provided interface, and a name.

        Multiple subscribers may be registered for the same (or
        equivalent) interfaces.
        N((RJRKt
subscriberR"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt	subscribe�scCsdS(s�Get a sequence of subscribers

        Subscribers for a *sequence* of required interfaces, and a provided
        interface are returned.
        N((RJRKR"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt
subscriptions�scCsdS(s0Get a sequence of subscription adapters
        N((RORKR"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytsubscribers�sN(RRRRLt_BLANKRMRRNRPRQRRRSRTR*RVRWRX(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRI�s
			
tComponentLookupErrorcBseZdZRS(sA component could not be found.(RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRZ�stInvalidcBseZdZRS(s&A component doesn't satisfy a promise.(RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR[�stIObjectEventcBseZdZed�ZRS(s�An event related to an object.

    The object that generated this event is not necessarily the object
    refered to by location.
    sThe subject of the event.(RRRRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR\�stObjectEventcBseZd�ZRS(cCs
||_dS(N(R(tselfR((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt__init__s(RRR_(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR]stIComponentLookupcBs�eZdZed�Zed�Zedd�Zed�Z	edd�Z
ed�Zd�Zd�Z
d	�Zd
dd�Zd�Zd
�ZRS(s�Component Manager for a Site

    This object manages the components registered at a particular site. The
    definition of a site is intentionally vague.
    s3Adapter Registry to manage all registered adapters.s4Adapter Registry to manage all registered utilities.cCsdS(s�Look for a named adapter to an interface for an object

        If a matching adapter cannot be found, returns the default.
        N((RRR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRRscCsdS(s�Look for a named adapter to an interface for an object

        If a matching adapter cannot be found, a ComponentLookupError
        is raised.
        N((RRR"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt
getAdapterscCsdS(s�Look for a multi-adapter to an interface for multiple objects

        If a matching adapter cannot be found, returns the default.
        N((RORR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRP!scCsdS(s�Look for a multi-adapter to an interface for multiple objects

        If a matching adapter cannot be found, a ComponentLookupError
        is raised.
        N((RORR"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytgetMultiAdapter'scCsdS(s�Look for all matching adapters to a provided interface for objects

        Return an iterable of name-adapter pairs for adapters that
        provide the given interface.
        N((RORK((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytgetAdapters.scCsdS(s�Get subscribers

        Subscribers are returned that provide the provided interface
        and that depend on and are comuted from the sequence of
        required objects.
        N((RORK((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRX5scGsdS(skCall handlers for the given objects

        Handlers registered for the given objects are called.
        N((RO((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pythandle=sRcCsdS(seLook up a utility that provides an interface.

        If one is not found, returns default.
        N((RR"R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytqueryUtilityCscCsdS(sxLook up the registered utilities that provide an interface.

        Returns an iterable of name-utility pairs.
        N((R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytgetUtilitiesForIscCsdS(s�Return all registered utilities for an interface

        This includes overridden utilities.

        An iterable of utility instances is returned.  No names are
        returned.
        N((R((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytgetAllUtilitiesRegisteredForOsN(RRRRtadapterst	utilitiesRYRRRRaRPRbRcRXRdReRfRg(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR`s						t
IRegistrationcBs2eZdZed�Zed�Zed�ZRS(s&A registration-information object
    s$The registry having the registrationsThe registration names�Information about the registration

    This is information deemed useful to people browsing the
    configuration of a system. It could, for example, include
    commentary or information about the source of the configuration.
    (RRRRtregistryR"tinfo(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRjXs
tIUtilityRegistrationcBs2eZdZed�Zed�Zed�ZRS(s4Information about the registration of a utility
    s1The factory used to create the utility. Optional.sThe object registereds'The interface provided by the component(RRRRtfactoryt	componentRK(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRmgst_IBaseAdapterRegistrationcBs2eZdZed�Zed�Zed�ZRS(s5Information about the registration of an adapter
    s#The factory used to create adapterss�The adapted interfaces

    This is a sequence of interfaces adapters by the registered
    factory.  The factory will be caled with a sequence of objects, as
    positional arguments, that provide these interfaces.
    s^The interface provided by the adapters.

    This interface is implemented by the factory
    (RRRRRnRJRK(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRpos	tIAdapterRegistrationcBseZdZRS(s5Information about the registration of an adapter
    (RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRq�st ISubscriptionAdapterRegistrationcBseZdZRS(sAInformation about the registration of a subscription adapter
    (RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRr�stIHandlerRegistrationcBs eZed�Zed�ZRS(s(An object called used to handle an events�The handled interfaces

    This is a sequence of interfaces handled by the registered
    handler.  The handler will be caled with a sequence of objects, as
    positional arguments, that provide these interfaces.
    (RRRthandlerRJ(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRs�stIRegistrationEventcBseZdZRS(s%An event that involves a registration(RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRu�stRegistrationEventcBseZdZd�ZRS(s.There has been a change in a registration
    cCsd|jj|jfS(Ns%s event:
%r(t	__class__RR(R^((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt__repr__�s(RRRRx(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRv�stIRegisteredcBseZdZRS(s*A component or factory was registered
    (RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRy�st
RegisteredcBseZRS((RR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyRz�st
IUnregisteredcBseZdZRS(s,A component or factory was unregistered
    (RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR{�stUnregisteredcBseZdZRS(s,A component or factory was unregistered
    (RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR|�stIComponentRegistrycBs�eZdZddeedd�Zddedd�Zd�Zddeed�Zddded�Z	d�Z
ddedd�Zddded	�Zd
�Z
dedd�Zdded�Zd
�ZRS(sRegister components
    cCsdS(s�Register a utility

        factory
           Factory for the component to be registerd.

        component
           The registered component

        provided
           This is the interface provided by the utility.  If the
           component provides a single interface, then this
           argument is optional and the component-implemented
           interface will be used.

        name
           The utility name.

        info
           An object that can be converted to a string to provide
           information about the registration.

        Only one of component and factory can be used.
        A Registered event is generated with an IUtilityRegistration.
        N((RoRKR"RlRn((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregisterUtility�scCsdS(s+Unregister a utility

        A boolean is returned indicating whether the registry was
        changed.  If the given component is None and there is no
        component registered, or if the given component is not
        None and is not registered, then the function returns
        False, otherwise it returns True.

        factory
           Factory for the component to be unregisterd.

        component
           The registered component The given component can be
           None, in which case any component registered to provide
           the given provided interface with the given name is
           unregistered.

        provided
           This is the interface provided by the utility.  If the
           component is not None and provides a single interface,
           then this argument is optional and the
           component-implemented interface will be used.

        name
           The utility name.

        Only one of component and factory can be used.
        An UnRegistered event is generated with an IUtilityRegistration.
        N((RoRKR"Rn((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytunregisterUtility�scCsdS(s�Return an iterable of IUtilityRegistration instances.

        These registrations describe the current utility registrations
        in the object.
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregisteredUtilities�scCsdS(s�Register an adapter factory

        Parameters:

        factory
            The object used to compute the adapter

        required
            This is a sequence of specifications for objects to be
            adapted.  If omitted, then the value of the factory's
            __component_adapts__ attribute will be used.  The
            __component_adapts__ attribute is usually attribute is
            normally set in class definitions using adapts
            function, or for callables using the adapter
            decorator.  If the factory doesn't have a
            __component_adapts__ adapts attribute, then this
            argument is required.

        provided
            This is the interface provided by the adapter and
            implemented by the factory.  If the factory
            implements a single interface, then this argument is
            optional and the factory-implemented interface will be
            used.

        name
            The adapter name.

        info
           An object that can be converted to a string to provide
           information about the registration.

        A Registered event is generated with an IAdapterRegistration.
        N((RnRJRKR"Rl((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregisterAdapter�scCsdS(s�Register an adapter factory

        A boolean is returned indicating whether the registry was
        changed.  If the given component is None and there is no
        component registered, or if the given component is not
        None and is not registered, then the function returns
        False, otherwise it returns True.

        Parameters:

        factory
            This is the object used to compute the adapter. The
            factory can be None, in which case any factory
            registered to implement the given provided interface
            for the given required specifications with the given
            name is unregistered.

        required
            This is a sequence of specifications for objects to be
            adapted.  If the factory is not None and the required
            arguments is omitted, then the value of the factory's
            __component_adapts__ attribute will be used.  The
            __component_adapts__ attribute attribute is normally
            set in class definitions using adapts function, or for
            callables using the adapter decorator.  If the factory
            is None or doesn't have a __component_adapts__ adapts
            attribute, then this argument is required.

        provided
            This is the interface provided by the adapter and
            implemented by the factory.  If the factory is not
            None and implements a single interface, then this
            argument is optional and the factory-implemented
            interface will be used.

        name
            The adapter name.

        An Unregistered event is generated with an IAdapterRegistration.
        N((RnRJRKR"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytunregisterAdapterscCsdS(s�Return an iterable of IAdapterRegistration instances.

        These registrations describe the current adapter registrations
        in the object.
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregisteredAdaptersGsRcCsdS(sfRegister a subscriber factory

        Parameters:

        factory
            The object used to compute the adapter

        required
            This is a sequence of specifications for objects to be
            adapted.  If omitted, then the value of the factory's
            __component_adapts__ attribute will be used.  The
            __component_adapts__ attribute is usually attribute is
            normally set in class definitions using adapts
            function, or for callables using the adapter
            decorator.  If the factory doesn't have a
            __component_adapts__ adapts attribute, then this
            argument is required.

        provided
            This is the interface provided by the adapter and
            implemented by the factory.  If the factory implements
            a single interface, then this argument is optional and
            the factory-implemented interface will be used.

        name
            The adapter name.

            Currently, only the empty string is accepted.  Other
            strings will be accepted in the future when support for
            named subscribers is added.

        info
           An object that can be converted to a string to provide
           information about the registration.

        A Registered event is generated with an
        ISubscriptionAdapterRegistration.
        N((RnRJtprovidesR"Rl((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregisterSubscriptionAdapterNscCsdS(sUUnregister a subscriber factory.

        A boolean is returned indicating whether the registry was
        changed.  If the given component is None and there is no
        component registered, or if the given component is not
        None and is not registered, then the function returns
        False, otherwise it returns True.

        Parameters:

        factory
            This is the object used to compute the adapter. The
            factory can be None, in which case any factories
            registered to implement the given provided interface
            for the given required specifications with the given
            name are unregistered.

        required
            This is a sequence of specifications for objects to be
            adapted.  If the factory is not None and the required
            arguments is omitted, then the value of the factory's
            __component_adapts__ attribute will be used.  The
            __component_adapts__ attribute attribute is normally
            set in class definitions using adapts function, or for
            callables using the adapter decorator.  If the factory
            is None or doesn't have a __component_adapts__ adapts
            attribute, then this argument is required.

        provided
            This is the interface provided by the adapter and
            implemented by the factory.  If the factory is not
            None implements a single interface, then this argument
            is optional and the factory-implemented interface will
            be used.

        name
            The adapter name.

            Currently, only the empty string is accepted.  Other
            strings will be accepted in the future when support for
            named subscribers is added.

        An Unregistered event is generated with an
        ISubscriptionAdapterRegistration.
        N((RnRJR�R"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytunregisterSubscriptionAdapterwscCsdS(s�Return an iterable of ISubscriptionAdapterRegistration instances.

        These registrations describe the current subscription adapter
        registrations in the object.
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregisteredSubscriptionAdapters�scCsdS(s�Register a handler.

        A handler is a subscriber that doesn't compute an adapter
        but performs some function when called.

        Parameters:

        handler
            The object used to handle some event represented by
            the objects passed to it.

        required
            This is a sequence of specifications for objects to be
            adapted.  If omitted, then the value of the factory's
            __component_adapts__ attribute will be used.  The
            __component_adapts__ attribute is usually attribute is
            normally set in class definitions using adapts
            function, or for callables using the adapter
            decorator.  If the factory doesn't have a
            __component_adapts__ adapts attribute, then this
            argument is required.

        name
            The handler name.

            Currently, only the empty string is accepted.  Other
            strings will be accepted in the future when support for
            named handlers is added.

        info
           An object that can be converted to a string to provide
           information about the registration.


        A Registered event is generated with an IHandlerRegistration.
        N((RtRJR"Rl((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregisterHandler�scCsdS(seUnregister a handler.

        A handler is a subscriber that doesn't compute an adapter
        but performs some function when called.

        A boolean is returned indicating whether the registry was
        changed.

        Parameters:

        handler
            This is the object used to handle some event
            represented by the objects passed to it. The handler
            can be None, in which case any handlers registered for
            the given required specifications with the given are
            unregistered.

        required
            This is a sequence of specifications for objects to be
            adapted.  If omitted, then the value of the factory's
            __component_adapts__ attribute will be used.  The
            __component_adapts__ attribute is usually attribute is
            normally set in class definitions using adapts
            function, or for callables using the adapter
            decorator.  If the factory doesn't have a
            __component_adapts__ adapts attribute, then this
            argument is required.

        name
            The handler name.

            Currently, only the empty string is accepted.  Other
            strings will be accepted in the future when support for
            named handlers is added.

        An Unregistered event is generated with an IHandlerRegistration.
        N((RtRJR"((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytunregisterHandler�scCsdS(s�Return an iterable of IHandlerRegistration instances.

        These registrations describe the current handler registrations
        in the object.
        N((((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pytregisteredHandlers�sN(RRRRRYR~RR�R�R�R�R�R�R�R�R�R�(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR}�s&				$*	(/	&'tIComponentscBseZdZRS(s&Component registration and access
    (RRR(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyR�sN((Rt
__docformat__tzope.interface.interfaceRRtzope.interface.declarationsRtzope.interface._compatRRYRRRRR(R4R:RItLookupErrorRZt	ExceptionR[R\RR]R`RjRmRpRqRrRsRuRvRyRzR{R|R}R�(((s?/usr/lib64/python2.7/site-packages/zope/interface/interfaces.pyt<module>sNJ�;�.Z
Q�S

Spamworldpro Mini