
    (ph\                        S r SrSSKJr  SSKJr  SSKJr  / SQr " S S\5      r " S	 S
\5      r	 " S S\	5      r
 " S S\5      r " S S\\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r\" \5       " S S5      5       r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r " S- S.\5      r\" \5       " S/ S0\5      5       r " S1 S2\5      r\" \5       " S3 S4\5      5       r  " S5 S6\5      r!\" \!5       " S7 S8\5      5       r" " S9 S:\5      r# " S; S<\\#5      r$g=)>zInterface Package Interfaces
restructuredtext    )implementer)	Attribute)	Interface)ComponentLookupErrorIAdapterRegistrationIAdapterRegistry
IAttributeIComponentLookupIComponentRegistryIComponentsIDeclarationIElementIHandlerRegistration
IInterfaceIInterfaceDeclarationIMethodInvalidIObjectEventIRegisteredIRegistrationIRegistrationEventISpecification ISubscriptionAdapterRegistrationIUnregisteredIUtilityRegistrationObjectEvent
RegisteredUnregisteredc                   n    \ rS rSrSr\" SS5      r \" SS5      rS rSS	 jrS
 rS r	S r
SS jrS rSrg)r   8   au  
Objects that have basic documentation and tagged values.

Known derivatives include :class:`IAttribute` and its derivative
:class:`IMethod`; these have no notion of inheritance.
:class:`IInterface` is also a derivative, and it does have a
notion of inheritance, expressed through its ``__bases__`` and
ordered in its ``__iro__`` (both defined by
:class:`ISpecification`).
__name__zThe object name__doc__zThe object doc stringc                     g)a\  Returns the value associated with *tag*.

Raise a `KeyError` if the tag isn't set.

If the object has a notion of inheritance, this searches
through the inheritance hierarchy and returns the nearest result.
If there is no such notion, this looks only at this object.

.. versionchanged:: 4.7.0
   This method should respect inheritance if present.
N tags    L/var/www/html/venv/lib/python3.13/site-packages/zope/interface/interfaces.pygetTaggedValueIElement.getTaggedValueZ           Nc                     g)z
As for `getTaggedValue`, but instead of raising a `KeyError`, returns
*default*.


.. versionchanged:: 4.7.0
   This method should respect inheritance if present.
Nr%   r'   defaults     r(   queryTaggedValueIElement.queryTaggedValueg   r+   r,   c                      g)a"  
Returns a collection of all tags in no particular order.

If the object has a notion of inheritance, this
includes all the inherited tagged values. If there is
no such notion, this looks only at this object.

.. versionchanged:: 4.7.0
   This method should respect inheritance if present.
Nr%   r%   r,   r(   getTaggedValueTagsIElement.getTaggedValueTagsq   r+   r,   c                     g)z8
Associates *value* with *key* directly in this object.
Nr%   )r'   values     r(   setTaggedValueIElement.setTaggedValue}   r+   r,   c                     g)zS
As for `getTaggedValue`, but never includes inheritance.

.. versionadded:: 5.0.0
Nr%   r&   s    r(   getDirectTaggedValueIElement.getDirectTaggedValue   r+   r,   c                     g)zU
As for `queryTaggedValue`, but never includes inheritance.

.. versionadded:: 5.0.0
Nr%   r.   s     r(   queryDirectTaggedValueIElement.queryDirectTaggedValue   r+   r,   c                      g)zk
As for `getTaggedValueTags`, but includes only tags directly
set on this object.

.. versionadded:: 5.0.0
Nr%   r%   r,   r(   getDirectTaggedValueTags!IElement.getDirectTaggedValueTags   r+   r,   r%   N)r"   
__module____qualname____firstlineno__r#   r   r)   r0   r3   r7   r:   r=   r@   __static_attributes__r%   r,   r(   r   r   8   sF    	" %67H	#:;G

r,   r   c                   *    \ rS rSrSr\" SS5      rSrg)r
      zAttribute descriptors	interfacez@Stores the interface instance in which the attribute is located.r%   N)r"   rC   rD   rE   r#   r   rI   rF   r%   r,   r(   r
   r
      s    +23Ir,   r
   c                   $    \ rS rSrSrS rS rSrg)r      zMethod attributesc                      g)a  Returns the signature information.

This method returns a dictionary with the following string keys:

- positional
    A sequence of the names of positional arguments.
- required
    A sequence of the names of required arguments.
- optional
    A dictionary mapping argument names to their default values.
- varargs
    The name of the varargs argument (or None).
- kwargs
    The name of the kwargs argument (or None).
Nr%   r%   r,   r(   getSignatureInfoIMethod.getSignatureInfo   r+   r,   c                      g)zReturn a signature string suitable for inclusion in documentation.

This method returns the function signature string. For example, if you
have ``def func(a, b, c=1, d='f')``, then the signature string is
``"(a, b, c=1, d='f')"``.
Nr%   r%   r,   r(   getSignatureStringIMethod.getSignatureString   r+   r,   r%   N)r"   rC   rD   rE   r#   rM   rP   rF   r%   r,   r(   r   r      s    "r,   r   c                   x    \ rS rSrSrS rS rS rSS jrSS jr	\
" S	5      r\
" S
5      r\
" S5      rSS jrSrg)r      z Object Behavioral specificationsc                     g)zTest 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.
Nr%   objects    r(   
providedByISpecification.providedBy   r+   r,   c                     g)zTest 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.
Nr%   class_s    r(   implementedByISpecification.implementedBy   r+   r,   c                     g)z=Test whether the specification is or extends another
        Nr%   )others    r(   isOrExtendsISpecification.isOrExtends   r+   r,   c                     g)zTest 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.
Nr%   )r_   stricts     r(   extendsISpecification.extends   r+   r,   Nc                     g)a  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.

Nr%   )callbacks    r(   weakrefISpecification.weakref   r+   r,   zoBase specifications

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

    a  Specification-resolution order

    A tuple of the specification and all of it's ancestor
    specifications from most specific to least specific. The specification
    itself is the first element.

    (This is similar to the method-resolution order for new-style classes.)
    a  Interface-resolution order

    A tuple 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.)
    c                     g)zdLook up the description for a name

If the named attribute is not defined, the default is
returned.
Nr%   )namer/   s     r(   getISpecification.get  r+   r,   r%   )TrB   )r"   rC   rD   rE   r#   rW   r\   r`   rd   rh   r   	__bases____sro____iro__rl   rF   r%   r,   r(   r   r      sV    *   	I   	G   	Gr,   r   c                   ^    \ rS rSrSrSS jrSS jrS rS rSS jr	S	 r
S
 r\" S5      rSrg)r   i	  aL  Interface objects

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

- 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.

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

- 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.

- 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 `zope.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:

- You assert that your object implement the interfaces.

  There are several ways that you can declare that an object
  provides an interface:

  1. Call `zope.interface.implementer` on your class definition.

  2. Call `zope.interface.directlyProvides` on your object.

  3. Call `zope.interface.classImplements` to declare 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.

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

c                     g)a7  Get the interface attribute names

Return a collection 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.
Nr%   alls    r(   namesIInterface.namesa  r+   r,   c                     g)an  Get the interface attribute names and descriptions

Return a collection 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.
Nr%   rs   s    r(   namesAndDescriptionsIInterface.namesAndDescriptionsl  r+   r,   c                     g)z_Get the description for a name

If the named attribute is not defined, a `KeyError` is raised.
Nr%   rk   s    r(   __getitem__IInterface.__getitem__x  r+   r,   c                     g)z}Get the description for the name if it was defined by the interface

If the interface doesn't define the name, returns None.
Nr%   r{   s    r(   directIInterface.direct~  r+   r,   Nc                     g)zValidate 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.Nr%   )objerrorss     r(   validateInvariantsIInterface.validateInvariants  r+   r,   c                     g)z1Test whether the name is defined by the interfaceNr%   r{   s    r(   __contains__IInterface.__contains__  r+   r,   c                      g)zReturn 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.
Nr%   r%   r,   r(   __iter__IInterface.__iter__  r+   r,   z-The name of the module defining the interfacer%   )FrB   )r"   rC   rD   rE   r#   ru   rx   r|   r   r   r   r   r   rF   r%   r,   r(   r   r   	  s:    Un	
 @ NOJr,   r   c                   <    \ rS rSrSrS rS rS rS rS r	S r
S	rg
)r   i  zvInterface declaration

Declarations are used to express the interfaces implemented by
classes or provided by objects.
c                     g)zTest whether an interface is in the specification

Return true if the given interface is one of the interfaces in
the specification and false otherwise.
Nr%   rI   s    r(   r   IDeclaration.__contains__  r+   r,   c                      g)zCReturn an iterator for the interfaces in the specification
        Nr%   r%   r,   r(   r   IDeclaration.__iter__  r+   r,   c                      g)a  Return 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.
Nr%   r%   r,   r(   	flattenedIDeclaration.flattened  r+   r,   c                     g)a  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.

Nr%   
interfacess    r(   __sub__IDeclaration.__sub__  r+   r,   c                     g)aJ  Create 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.
Nr%   r   s    r(   __add__IDeclaration.__add__  r+   r,   c                      g)zHReturn a true value of the interface specification is non-empty
        Nr%   r%   r,   r(   __nonzero__IDeclaration.__nonzero__  r+   r,   r%   N)r"   rC   rD   rE   r#   r   r   r   r   r   r   rF   r%   r,   r(   r   r     s%    
	r,   r   c                       \ rS rSrSr\" S5      rS rS rS r	S r
S rS	 rS
 rS rS rS rS rS rS rS rS rS rS rSrg)r   i  ai  
Declare 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.

This interface is implemented by :mod:`zope.interface`.
z,The base class used to create new interfacesc                     g)a"  
Attach a tagged value to an interface while defining the interface.

This is a way of executing :meth:`IElement.setTaggedValue` from
the definition of the interface. For example::

     class IFoo(Interface):
         taggedValue('key', 'value')

.. seealso:: `zope.interface.taggedValue`
Nr%   )keyr6   s     r(   taggedValue!IInterfaceDeclaration.taggedValue  r+   r,   c                     g)a  
Attach an invariant checker function to an interface while defining it.

Invariants can later be validated against particular implementations by
calling :meth:`IInterface.validateInvariants`.

For example::

     def check_range(ob):
         if ob.max < ob.min:
             raise ValueError("max value is less than min value")

     class IRange(Interface):
         min = Attribute("The min value")
         max = Attribute("The max value")

         invariant(check_range)

.. seealso:: `zope.interface.invariant`
Nr%   )checker_functions    r(   	invariantIInterfaceDeclaration.invariant  r+   r,   c                     g)a  
A decorator that transforms a method specification into an
implementation method.

This is used to override methods of ``Interface`` or provide new
methods.  Definitions using this decorator will not appear in
:meth:`IInterface.names()`.  It is possible to have an implementation
method and a method specification of the same name.

For example::

     class IRange(Interface):
         @interfacemethod
         def __adapt__(self, obj):
             if isinstance(obj, range):
                 # Return the builtin ``range`` as-is
                 return obj
             return super(type(IRange), self).__adapt__(obj)

You can use ``super`` to call the parent class functionality. Note
that the zero-argument version (``super().__adapt__``) works on Python
3.6 and above, but prior to that the two-argument version must be
used, and the class must be explicitly passed as the first argument.

.. versionadded:: 5.1.0
.. seealso:: `zope.interface.interfacemethod`
Nr%   )methods    r(   interfacemethod%IInterfaceDeclaration.interfacemethod  r+   r,   c                     g)z
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`.

.. seealso:: `zope.interface.providedBy`
Nr%   )obs    r(   rW    IInterfaceDeclaration.providedBy:  r+   r,   c                     g)z
Return the interfaces implemented for a class's instances.

The value returned is an `IDeclaration`.

.. seealso:: `zope.interface.implementedBy`
Nr%   rZ   s    r(   r\   #IInterfaceDeclaration.implementedByF  r+   r,   c                     g)a  
Declare 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. This is equivalent to::

    @implementer(I1, I2)
    class C(A, B):
        pass

.. seealso:: `zope.interface.classImplements`
.. seealso:: `zope.interface.implementer`
Nr%   r[   r   s     r(   classImplements%IInterfaceDeclaration.classImplementsS  r+   r,   c                     g)z2
See :func:`zope.interface.classImplementsFirst`.
Nr%   )clsrI   s     r(   classImplementsFirst*IInterfaceDeclaration.classImplementsFirstq  r+   r,   c                      g)z
Create a decorator for declaring interfaces implemented by a
factory.

A callable is returned that makes an implements declaration on
objects passed to it.

.. seealso:: :meth:`classImplements`
Nr%   r   s    r(   r   !IInterfaceDeclaration.implementerv  r+   r,   c                     g)aN  
Declare 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.

.. seealso:: `zope.interface.classImplementsOnly`
Nr%   r   s     r(   classImplementsOnly)IInterfaceDeclaration.classImplementsOnly  r+   r,   c                      g)z
Create a decorator for declaring the only interfaces implemented.

A callable is returned that makes an implements declaration on
objects passed to it.

.. seealso:: `zope.interface.implementer_only`
Nr%   r   s    r(   implementer_only&IInterfaceDeclaration.implementer_only  r+   r,   c                     g)z
Return the interfaces directly provided by the given object.

The value returned is an `IDeclaration`.

.. seealso:: `zope.interface.directlyProvidedBy`
Nr%   rU   s    r(   directlyProvidedBy(IInterfaceDeclaration.directlyProvidedBy  r+   r,   c                     g)a  
Declare interfaces declared directly for an object.

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

.. caution::
   The interfaces given (including the interfaces in the
   specifications) *replace* interfaces previously
   declared for the object. See :meth:`alsoProvides` to add
   additional interfaces.

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.

.. seealso:: `zope.interface.directlyProvides`
Nr%   rV   r   s     r(   directlyProvides&IInterfaceDeclaration.directlyProvides  r+   r,   c                     g)z
Declare additional interfaces directly for an object.

For example::

  alsoProvides(ob, I1)

is equivalent to::

  directlyProvides(ob, directlyProvidedBy(ob), I1)

.. seealso:: `zope.interface.alsoProvides`
Nr%   r   s     r(   alsoProvides"IInterfaceDeclaration.alsoProvides  r+   r,   c                     g)a~  
Remove an interface from the list of an object's directly provided
interfaces.

For example::

  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.

.. seealso:: `zope.interface.noLongerProvides`
Nr%   )rV   rI   s     r(   noLongerProvides&IInterfaceDeclaration.noLongerProvides  r+   r,   c                      g)zZ
Declare interfaces provided directly by a class.

.. seealso:: `zope.interface.provider`
Nr%   r   s    r(   providerIInterfaceDeclaration.provider  r+   r,   c                      g)a  
Declare 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)

.. seealso:: `zope.interface.moduleProvides`
Nr%   r   s    r(   moduleProvides$IInterfaceDeclaration.moduleProvides  r+   r,   c                      g)a  
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.

.. seealso:: `zope.interface.Declaration`
Nr%   r   s    r(   Declaration!IInterfaceDeclaration.Declaration"  r+   r,   r%   N)r"   rC   rD   rE   r#   r   r   r   r   r   rW   r\   r   r   r   r   r   r   r   r   r   r   r   r   rF   r%   r,   r(   r   r     sk    < HII,B
<
	0,\,8r,   r   c                       \ rS rSrSrS rSS jrSS jrSS jrSS jr	 SS	 jr
 SS
 jrS rS rS rS rS rS rSrg)r	   i0  ax  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.
c                     g)zRegister a value

A value is registered for a *sequence* of required specifications, a
provided interface, and a name, which must be text.
Nr%   )requiredprovidedrk   r6   s       r(   registerIAdapterRegistry.register<  r+   r,   c                     g)aR  Return the component registered for the given interfaces and name

name must be text.

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.

Nr%   )r   r   rk   s      r(   
registeredIAdapterRegistry.registeredC  r+   r,   Nc                     g)zLookup a value

A value is looked up based on a *sequence* of required
specifications, a provided interface, and a name, which must be
text.
Nr%   r   r   rk   r/   s       r(   lookupIAdapterRegistry.lookupQ  r+   r,   c                     g)zDAdapt a sequence of objects to a named, provided, interface
        Nr%   )objectsr   rk   r/   s       r(   queryMultiAdapter"IAdapterRegistry.queryMultiAdapterY  r+   r,   c                     g)zLookup a value using a single required interface

A value is looked up based on a single required
specifications, a provided interface, and a name, which must be
text.
Nr%   r   s       r(   lookup1IAdapterRegistry.lookup1]  r+   r,   c                     g)z<Adapt an object using a registered adapter factory.
        Nr%   )rV   r   rk   r/   s       r(   queryAdapterIAdapterRegistry.queryAdaptere  r+   r,   c                     g)zHAdapt an object using a registered adapter factory.

name must be text.
Nr%   )r   rV   rk   r/   s       r(   adapter_hookIAdapterRegistry.adapter_hookk  r+   r,   c                     g)zFind all adapters from the required to the provided interfaces

An iterable object is returned that provides name-value two-tuples.
Nr%   r   r   s     r(   	lookupAllIAdapterRegistry.lookupAlls  r+   r,   c                     g)z@Return the names for which there are registered objects
        Nr%   r   s     r(   ru   IAdapterRegistry.namesy  r+   r,   c                     g)aM  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.

.. versionchanged:: 5.1.1
   Correct the method signature to remove the ``name`` parameter.
   Subscribers have no names.
Nr%   r   r   
subscribers      r(   	subscribeIAdapterRegistry.subscribe}  r+   r,   c                     g)a[  
Check whether the object *subscriber* is registered directly
with this object via a previous call to
``subscribe(required, provided, subscriber)``.

If the *subscriber*, or one equal to it, has been subscribed,
for the given *required* sequence and *provided* interface,
return that object. (This does not guarantee whether the *subscriber*
itself is returned, or an object equal to it.)

If it has not, return ``None``.

Unlike :meth:`subscriptions`, this method won't retrieve
components registered for more specific required interfaces or
less specific provided interfaces.

.. versionadded:: 5.3.0
Nr%   r   s      r(   
subscribedIAdapterRegistry.subscribed  r+   r,   c                     g)a  
Get a sequence of subscribers.

Subscribers for a sequence of *required* interfaces, and a *provided*
interface are returned. This takes into account subscribers
registered with this object, as well as those registered with
base adapter registries in the resolution order, and interfaces that
extend *provided*.

.. versionchanged:: 5.1.1
   Correct the method signature to remove the ``name`` parameter.
   Subscribers have no names.
Nr%   r   s     r(   subscriptionsIAdapterRegistry.subscriptions  r+   r,   c                     g)a`  
Get a sequence of subscription **adapters**.

This is like :meth:`subscriptions`, but calls the returned
subscribers with *objects* (and optionally returns the results
of those calls), instead of returning the subscribers directly.

:param objects: A sequence of objects; they will be used to
    determine the *required* argument to :meth:`subscriptions`.
:param provided: A single interface, or ``None``, to pass
    as the *provided* parameter to :meth:`subscriptions`.
    If an interface is given, the results of calling each returned
    subscriber with the the *objects* are collected and returned
    from this method; each result should be an object implementing
    the *provided* interface. If ``None``, the resulting subscribers
    are still called, but the results are ignored.
:return: A sequence of the results of calling the subscribers
    if *provided* is not ``None``. If there are no registered
    subscribers, or *provided* is ``None``, this will be an empty
    sequence.

.. versionchanged:: 5.1.1
   Correct the method signature to remove the ``name`` parameter.
   Subscribers have no names.
Nr%   r   r   s     r(   subscribersIAdapterRegistry.subscribers  r+   r,   r%    r  N)r"   rC   rD   rE   r#   r   r   r   r   r   r   r   r   ru   r   r   r  r  rF   r%   r,   r(   r	   r	   0  sR    	 ,0 ,0 (r,   r	   c                       \ rS rSrSrSrg)r   i  zA component could not be found.r%   Nr"   rC   rD   rE   r#   rF   r%   r,   r(   r   r     s    )r,   r   c                       \ rS rSrSrSrg)r   i  z&A component doesn't satisfy a promise.r%   Nr  r%   r,   r(   r   r     s    0r,   r   c                   (    \ rS rSrSr\" S5      rSrg)r   i  z|An event related to an object.

The object that generated this event is not necessarily the object
referred to by location.
zThe subject of the event.r%   N)r"   rC   rD   rE   r#   r   rV   rF   r%   r,   r(   r   r     s     23Fr,   r   c                       \ rS rSrS rSrg)r   i  c                     Xl         g rB   rU   )selfrV   s     r(   __init__ObjectEvent.__init__  s    r,   rU   N)r"   rC   rD   rE   r  rF   r%   r,   r(   r   r     s    r,   r   c                       \ rS rSrSr\" S5      r\" S5      r SS jr SS jr	SS jr
SS	 jrS
 rS rS rSS jrS rS rSrg)r   i  zComponent Manager for a Site

This object manages the components registered at a particular site. The
definition of a site is intentionally vague.
z3Adapter Registry to manage all registered adapters.z4Adapter Registry to manage all registered utilities.Nc                     g)ztLook for a named adapter to an interface for an object

If a matching adapter cannot be found, returns the default.
Nr%   )rV   rI   rk   r/   s       r(   r   IComponentLookup.queryAdapter  r+   r,   c                     g)zLook for a named adapter to an interface for an object

If a matching adapter cannot be found, a `ComponentLookupError`
is raised.
Nr%   )rV   rI   rk   s      r(   
getAdapterIComponentLookup.getAdapter  r+   r,   c                     g)z{Look for a multi-adapter to an interface for multiple objects

If a matching adapter cannot be found, returns the default.
Nr%   )r   rI   rk   r/   s       r(   r   "IComponentLookup.queryMultiAdapter  r+   r,   c                     g)zLook for a multi-adapter to an interface for multiple objects

If a matching adapter cannot be found, a `ComponentLookupError`
is raised.
Nr%   )r   rI   rk   s      r(   getMultiAdapter IComponentLookup.getMultiAdapter  r+   r,   c                     g)zLook for all matching adapters to a provided interface for objects

Return an iterable of name-adapter pairs for adapters that
provide the given interface.
Nr%   r  s     r(   getAdaptersIComponentLookup.getAdapters  r+   r,   c                     g)zGet subscribers

Subscribers are returned that provide the provided interface
and that depend on and are computed from the sequence of
required objects.
Nr%   r  s     r(   r  IComponentLookup.subscribers  r+   r,   c                      g)z[Call handlers for the given objects

Handlers registered for the given objects are called.
Nr%   )r   s    r(   handleIComponentLookup.handle!  r+   r,   c                     g)zULook up a utility that provides an interface.

If one is not found, returns default.
Nr%   )rI   rk   r/   s      r(   queryUtilityIComponentLookup.queryUtility'  r+   r,   c                     g)zhLook up the registered utilities that provide an interface.

Returns an iterable of name-utility pairs.
Nr%   r   s    r(   getUtilitiesFor IComponentLookup.getUtilitiesFor-  r+   r,   c                     g)zReturn all registered utilities for an interface

This includes overridden utilities.

An iterable of utility instances is returned.  No names are
returned.
Nr%   r   s    r(   getAllUtilitiesRegisteredFor-IComponentLookup.getAllUtilitiesRegisteredFor3  r+   r,   r%   r	  r  )r"   rC   rD   rE   r#   r   adapters	utilitiesr   r  r   r  r  r  r$  r'  r*  r-  rF   r%   r,   r(   r   r     sb     =?H >@I -1 !#r,   r   c                   H    \ rS rSrSr\" S5      r\" S5      r\" S5      rSr	g)r   i=  z&A registration-information object
    z$The registry having the registrationzThe registration namezInformation 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.
    r%   N)
r"   rC   rD   rE   r#   r   registryrk   inforF   r%   r,   r(   r   r   =  s.     ?@H,-D  	Dr,   r   c                   H    \ rS rSrSr\" S5      r\" S5      r\" S5      rSr	g)r   iM  z4Information about the registration of a utility
    z1The factory used to create the utility. Optional.zThe object registeredz'The interface provided by the componentr%   N)
r"   rC   rD   rE   r#   r   factory	componentr   rF   r%   r,   r(   r   r   M  s*     KLG12IBCHr,   r   c                   H    \ rS rSrSr\" S5      r\" S5      r\" S5      rSr	g)_IBaseAdapterRegistrationiV  5Information about the registration of an adapter
    z#The factory used to create adapterszThe 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.
    z^The interface provided by the adapters.

    This interface is implemented by the factory
    r%   N)
r"   rC   rD   rE   r#   r   r5  r   r   rF   r%   r,   r(   r8  r8  V  s4     =>G  	H   	Hr,   r8  c                       \ rS rSrSrSrg)r   ii  r9  r%   Nr  r%   r,   r(   r   r   i      r,   r   c                       \ rS rSrSrSrg)r   in  zAInformation about the registration of a subscription adapter
    r%   Nr  r%   r,   r(   r   r   n  r;  r,   r   c                   4    \ rS rSr\" S5      r\" S5      rSrg)r   is  z(An object called used to handle an eventzThe 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.
    r%   N)r"   rC   rD   rE   r   handlerr   rF   r%   r,   r(   r   r   s  s    BCG  	Hr,   r   c                       \ rS rSrSrSrg)r   i  z%An event that involves a registrationr%   Nr  r%   r,   r(   r   r     s    /r,   r   c                       \ rS rSrSrS rSrg)RegistrationEventi  z.There has been a change in a registration
    c                 N    U R                   R                   SU R                  < 3$ )Nz event:
)	__class__r"   rV   )r  s    r(   __repr__RegistrationEvent.__repr__  s"    ..))*)DKK?CCr,   r%   N)r"   rC   rD   rE   r#   rD  rF   r%   r,   r(   rA  rA    s    Dr,   rA  c                       \ rS rSrSrSrg)r   i  z*A component or factory was registered
    r%   Nr  r%   r,   r(   r   r     r;  r,   r   c                       \ rS rSrSrg)r   i  r%   N)r"   rC   rD   rE   rF   r%   r,   r(   r   r     s    r,   r   c                       \ rS rSrSrSrg)r   i  ,A component or factory was unregistered
    r%   Nr  r%   r,   r(   r   r     r;  r,   r   c                       \ rS rSrSrSrg)r   i  rI  r%   Nr  r%   r,   r(   r   r     s    r,   r   c                       \ rS rSrSr  SS jr  SS jrS r  SS jr  SS jr	S	 r
  SS
 jr  SS jrS rSS jrSS jrS rSrg)r   i  zRegister components
    Nc                     g)a]  Register a utility

:param factory:
   Factory for the component to be registered.

:param component:
   The registered component

:param 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.

:param name:
   The utility name.

:param 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 `IRegistered` event is generated with an `IUtilityRegistration`.
Nr%   )r6  r   rk   r3  r5  s        r(   registerUtility"IComponentRegistry.registerUtility  r+   r,   c                     g)a  Unregister a utility

:returns:
    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.

:param factory:
   Factory for the component to be unregistered.

:param 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.

:param 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.

:param name:
   The utility name.

Only one of *component* and *factory* can be used.
An `IUnregistered` event is generated with an `IUtilityRegistration`.
Nr%   )r6  r   rk   r5  s       r(   unregisterUtility$IComponentRegistry.unregisterUtility  r+   r,   c                      g)zReturn an iterable of `IUtilityRegistration` instances.

These registrations describe the current utility registrations
in the object.
Nr%   r%   r,   r(   registeredUtilities&IComponentRegistry.registeredUtilities  r+   r,   c                     g)a  Register an adapter factory

:param factory:
    The object used to compute the adapter

:param 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
    normally set in class definitions using
    the `.adapter`
    decorator.  If the factory doesn't have a
    ``__component_adapts__`` adapts attribute, then this
    argument is required.

:param 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.

:param name:
    The adapter name.

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

A `IRegistered` event is generated with an `IAdapterRegistration`.
Nr%   )r5  r   r   rk   r3  s        r(   registerAdapter"IComponentRegistry.registerAdapter  r+   r,   c                     g)a  Unregister an adapter factory

:returns:
    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.

:param 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.

:param 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.

:param 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.

:param name:
    The adapter name.

An `IUnregistered` event is generated with an `IAdapterRegistration`.
Nr%   )r5  r   r   rk   s       r(   unregisterAdapter$IComponentRegistry.unregisterAdapter  r+   r,   c                      g)zReturn an iterable of `IAdapterRegistration` instances.

These registrations describe the current adapter registrations
in the object.
Nr%   r%   r,   r(   registeredAdapters%IComponentRegistry.registeredAdapters6  r+   r,   c                     g)aT  Register a subscriber factory

:param factory:
    The object used to compute the adapter

:param 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
    normally set using the adapter
    decorator.  If the factory doesn't have a
    ``__component_adapts__`` adapts attribute, then this
    argument is required.

:param 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.

:param 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.

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

A `IRegistered` event is generated with an
`ISubscriptionAdapterRegistration`.
Nr%   )r5  r   providesrk   r3  s        r(   registerSubscriptionAdapter.IComponentRegistry.registerSubscriptionAdapter=  r+   r,   c                     g)a  Unregister a subscriber factory.

:returns:
    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.

:param 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.

:param 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
    normally set using the adapter
    decorator.  If the factory doesn't have a
    ``__component_adapts__`` adapts attribute, then this
    argument is required.

:param 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.

:param 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 `IUnregistered` event is generated with an
`ISubscriptionAdapterRegistration`.
Nr%   )r5  r   r_  rk   s       r(   unregisterSubscriptionAdapter0IComponentRegistry.unregisterSubscriptionAdapterc  r+   r,   c                      g)zReturn an iterable of `ISubscriptionAdapterRegistration` instances.

These registrations describe the current subscription adapter
registrations in the object.
Nr%   r%   r,   r(   registeredSubscriptionAdapters1IComponentRegistry.registeredSubscriptionAdapters  r+   r,   c                     g)a  Register a handler.

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

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

:param 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
    normally set using the adapter
    decorator.  If the factory doesn't have a
    ``__component_adapts__`` adapts attribute, then this
    argument is required.

:param 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.

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


A `IRegistered` event is generated with an `IHandlerRegistration`.
Nr%   )r>  r   rk   r3  s       r(   registerHandler"IComponentRegistry.registerHandler  r+   r,   c                     g)aY  Unregister a handler.

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

:returns: A boolean is returned indicating whether the registry was
    changed.

:param 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.

:param 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
    normally set using the adapter
    decorator.  If the factory doesn't have a
    ``__component_adapts__`` adapts attribute, then this
    argument is required.

:param 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 `IUnregistered` event is generated with an `IHandlerRegistration`.
Nr%   )r>  r   rk   s      r(   unregisterHandler$IComponentRegistry.unregisterHandler  r+   r,   c                      g)zReturn an iterable of `IHandlerRegistration` instances.

These registrations describe the current handler registrations
in the object.
Nr%   r%   r,   r(   registeredHandlers%IComponentRegistry.registeredHandlers  r+   r,   r%   )NNr  r  N)NNr  N)NNr  r  )NNNr  )Nr  r  )NNr  )r"   rC   rD   rE   r#   rM  rP  rS  rV  rY  r\  r`  rc  rf  ri  rl  ro  rF   r%   r,   r(   r   r     s     =?)-8 ?A"&B EG!F 26.0(T FJ24$L >B:<,\!F"Hr,   r   c                       \ rS rSrSrSrg)r   i  z&Component registration and access
    r%   Nr  r%   r,   r(   r   r     r;  r,   r   N)%r#   __docformat__zope.interface.declarationsr   zope.interface.interfacer   r   __all__r   r
   r   r   r   r   r   r	   LookupErrorr   	Exceptionr   r   r   r   r   r   r8  r   r   r   r   rA  r   r   r   r   r   r   r%   r,   r(   <module>rx     s  " 3 . .B^y ^B3 3j :HY HVMP MP`9> 9xXI Xv
Yy Y|*; *1i 149 4 \  Sy Sl	I 	 D= D	 	&4 
'@ 
		= 		0 0  D D !D$ 
 [	" 	 	& 
 ]$  
C CL
"$6 r,   