%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/zope/interface/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/zope/interface/__pycache__/interface.cpython-312.pyc

�

��e������dZddlZddlmZddlmZddlZddlmZddlm	Z	ddl
mZddl
mZgd�Zd	Zd
ZdZdZe�Ze�Zd
�Zd�ZGd�d�ZeZeGd�d��ZGd�d�ZeGd�dee��Zegd�ZGd�de�ZGd�de�Z e deeefddi�Z!d�Z"Gd �de!�Z#e#d!d"�#�Z$d$�e$_%e$jMe$�e$jNe$fk(sJ�e$e_(e$e_(Gd%�d&e#�Z)Gd'�d(e�Z*Gd)�d*e*�Z+d3d+�Z,d4d,�Z-d-�Z.dd.l/m0Z0dd/l/m1Z1dd0lm2Z2dd1lm3Z3dd2l/m4Z4ejMe4e4�y)5z Interface object implementation
�N)�
MethodType)�FunctionType)�_use_c_impl)�Invalid)�ro)�InterfaceClass�
Specification�
adapter_hooks���__interface_tagged_values__�__interface_methods__c��tjd�j}|jti�}|jdg�}|j|�tS)N��
invariants)�sys�	_getframe�f_locals�
setdefault�TAGGED_DATA�append�_decorator_non_return)�callr�tagsrs    �:/usr/lib/python3/dist-packages/zope/interface/interface.py�	invariantr1sL���}�}�Q��(�(�H����{�B�/�D�����r�2�J����d�� � �c��tjd�j}|jti�}|||<t
S)z;Attaches a tagged value to an interface at definition time.r)rrrrrr)�key�valuer�
tagged_valuess    r�taggedValuer"9s8���}�}�Q��(�(�H��'�'��R�8�M��M�#�� � rc�J�eZdZdZd
d�Zd�Zd�Zd�Zdd�Zd�Z	d	�Z
eZeZe	Z
y)�ElementzI
    Default implementation of `zope.interface.interfaces.IElement`.
    c�b�|s|jd�dk\r|}d}||_||_d|_y)N� r)�find�__name__�__doc__�_Element__tagged_values)�selfr(r)s   r�__init__zElement.__init__Ks7���8�=�=��-��2��G��H� ��
���� $��rc��|jS)z! Returns the name of the object. �r(�r+s r�getNamezElement.getNameVs���}�}�rc��|jS)z+ Returns the documentation for the object. )r)r/s r�getDoczElement.getDocZs���|�|�rc�N�|jst|��|j|S��* Returns the value associated with 'tag'. )r*�KeyError)r+�tags  r�getTaggedValuezElement.getTaggedValuees&���#�#��3�-���#�#�C�(�(rNc�V�|jr|jj||�S|Sr4)r*�get)r+r7�defaults   r�queryTaggedValuezElement.queryTaggedValueks)��9=�9M�9M�t�#�#�'�'��W�5�Z�SZ�Zrc�R�|jr|jj�SdS)z# Returns a collection of all tags. �)r*�keysr/s r�getTaggedValueTagszElement.getTaggedValueTagsos$��.2�.B�.B�t�#�#�(�(�*�J��Jrc�H�|j�i|_||j|<y)z  Associates 'value' with 'key'. N)r*�r+r7r s   r�setTaggedValuezElement.setTaggedValuess&�����'�#%�D� �$)����S�!r)��N)r(�
__module__�__qualname__r)r,r0r2r8r<r@rC�queryDirectTaggedValue�getDirectTaggedValue�getDirectTaggedValueTagsr>rrr$r$As@���	$���)�[�K�*�.��)��1�rr$c�&�eZdZdZd�Zd�Zd�ZeZy)�SpecificationBase)�_implied�_dependents�_bases�_v_attrs�__iro__�__sro__�__weakref__c�4�t|�}||jvS)z2Is the interface implemented by an object
        )�
providedByrM)r+�ob�specs   rrUzSpecificationBase.providedBy�s���"�~���t�}�}�$�$rc�4�t|�}||jvS)z�Test whether the specification is implemented by a class or factory.

        Raise TypeError if argument is neither a class nor a callable.
        )�
implementedByrM)r+�clsrWs   rrYzSpecificationBase.implementedBy�s��
�S�!���t�}�}�$�$rc��||jvS)zCIs the interface the same as or extend the given interface
        �rM)r+�	interfaces  r�isOrExtendszSpecificationBase.isOrExtends�s���D�M�M�)�)rN)r(rFrG�	__slots__rUrYr^�__call__r>rrrLrL�s��
�I�%�%�*�
�HrrLc�.�eZdZdZd�Zd�Zd�Zd�Zd�Zy)�NameAndModuleComparisonMixinr>c��||ury|�y|j|jf}	|j|jf}||kD||kz
S#t$r	tcYSwxYw)a�
        Compare *self* to *other* based on ``__name__`` and ``__module__``.

        Return 0 if they are equal, return 1 if *self* is
        greater than *other*, and return -1 if *self* is less than
        *other*.

        If *other* does not have ``__name__`` or ``__module__``, then
        return ``NotImplemented``.

        .. caution::
           This allows comparison to things well outside the type hierarchy,
           perhaps not symmetrically.

           For example, ``class Foo(object)`` and ``class Foo(Interface)``
           in the same file would compare equal, depending on the order of
           operands. Writing code like this by hand would be unusual, but it could
           happen with dynamic creation of types and interfaces.

        None is treated as a pseudo interface that implies the loosest
        contact possible, no contract. For that reason, all interfaces
        sort before None.
        r���)r(rF�AttributeError�NotImplemented)r+�other�n1�n2s    r�_comparez%NameAndModuleComparisonMixin._compare�sm��0�D�=���=���m�m�T�_�_�
-��	"��.�.�%�"2�"2�3�B�
�R��B��G�$�$��	�	"�!�!�	"�s�A�A�Ac�B�|j|�}|tur|S|dkS�Nr�rjrf�r+rg�cs   r�__lt__z#NameAndModuleComparisonMixin.__lt__��&���M�M�%� ������H��1�u�rc�B�|j|�}|tur|S|dkSrlrmrns   r�__le__z#NameAndModuleComparisonMixin.__le__��&���M�M�%� ������H��A�v�
rc�B�|j|�}|tur|S|dkDSrlrmrns   r�__gt__z#NameAndModuleComparisonMixin.__gt__�rqrc�B�|j|�}|tur|S|dk\Srlrmrns   r�__ge__z#NameAndModuleComparisonMixin.__ge__�rtrN)	r(rFrGr_rjrprsrvrxr>rrrbrb�s#���I�%%�N���rrbc�T�eZdZdZdZdd�Zd�Zed��Ze	fd�Z
d�Zd	�Zd
�Z
d�Zy)
�
InterfaceBasez:Base class that wants to be replaced with a C base :)
    )r(�__ibmodule__�_v_cached_hashNc� �||_||_yrE)r(r{)r+�name�modules   rr,zInterfaceBase.__init__	s����
�"��rc��t�rE)�NotImplementedError�r+�conforms  r�
_call_conformzInterfaceBase._call_conform
s��!�!rc��|jSrE)r{r/s r�__module_property__z!InterfaceBase.__module_property__s��� � � rc���	|j}|�|j|�}|�|S|j|�}|�|S|tur|Std||��#t$rd}Y�PwxYw)z)Adapt an object to the interface
        NzCould not adapt)�__conform__rer��	__adapt__�_marker�	TypeError)r+�obj�	alternater��adapters     rr`zInterfaceBase.__call__s���	��o�o�G����(�(��1�G��"����.�.��%�����N��G�#����)�3��5�5���	��G�	�s�A�A�Ac�^�|j|�r|StD]}|||�}|��|cSy)z(Adapt an object to the receiver
        N)rUr
)r+r��hookr�s    rr�zInterfaceBase.__adapt__*s?���?�?�3���J�!�	�D��4��o�G��"���	�
rc��	|jS#t$r4t|j|jf�|_Y|jSwxYwrE)r|re�hashr(rFr/s r�__hash__zInterfaceBase.__hash__7sK��	I��&�&�&���	I�"&��
�
�t���'G�"H�D���"�"�"�	I�s��/A�
Ac�B�|j|�}|tur|S|dk(Srlrmrns   r�__eq__zInterfaceBase.__eq__?rtrc�L�||ury|j|�}|tur|S|dk7S)NFrrmrns   r�__ne__zInterfaceBase.__ne__Es0���D�=���M�M�%� ������H��A�v�
r�NN)r(rFrGr)r_r,r��propertyr�r�r`r�r�r�r�r>rrrzrz�sJ����I�#�"��!��!�'.�6�*�#��rrzr
c��eZdZdZdZdZejZejZdd�Z	e
d��Zd�Zd�Z
d�Ze
d	�e�ZeZd
�Zd�Zd�Zdd
�Zdd�Zdd�Zy)r	awSpecifications

    An interface specification is used to track interface declarations
    and component registrations.

    This class is a base class for both interfaces themselves and for
    interface specifications (declarations).

    Specifications are mutable.  If you reassign their bases, their
    relations with other specifications are adjusted accordingly.
    r>Nc�x�d|_d|_i|_d|_d|_d|_t
|�|_y)Nr>)rNrOrMrPrQrR�tuple�	__bases__)r+�basess  rr,zSpecification.__init__gs:�� ��������
���
��������u���rc�d�|j�tj�|_|jSrE)rN�weakref�WeakKeyDictionaryr/s r�
dependentszSpecification.dependentsys+�����#�&�8�8�:�D�����rc�\�|jj|d�dz|j|<y)Nrr)r�r:rN)r+�	dependents  r�	subscribezSpecification.subscribes(��&*�o�o�&9�&9�)�Q�&G�!�&K�����#rc��	|j|}|dz}|s|j|=y|dkDsJ�||j|<y#t$rt|��wxYw)Nrr)rNr�r6r�)r+r��ns   r�unsubscribezSpecification.unsubscribe�sf��	&�� � ��+�A�	
�Q�������	�*��q�5�L�5�)*�D�O�O�I�&���	&��9�%�%�	&�s	�=�Ac��|jD]}|j|��||_|D]}|j|��|j	|�yrE)r�r�rOr��changed)r+r��bs   r�
__setBaseszSpecification.__setBases�sS�����	 �A�
�M�M�$��	 �����	�A�
�K�K���	�	
���T�rc��|jSrE)rOr/s r�<lambda>zSpecification.<lambda>�s
��T�[�[�rc��|j|jD�cic]}||j��c}��}|j}|�-|r+|d|ur$|D�cgc]}||ur|��
}}|j	|�|Scc}wcc}w)z�
        Calculate and return the resolution order for this object, using its ``__bases__``.

        Ensures that ``Interface`` is always the last (lowest priority) element.
        )�	base_mrosrd)�_do_calculate_ror�rR�_ROOTr)r+r��sro�root�xs     r�_calculate_srozSpecification._calculate_sro�s���F�#�#��^�^�/
��
�q�y�y�L�/
�#����z�z������B��t�(;�����D�=���C��

�J�J�t���
��)/
��s�A3�
A8c	��d|_|j}|j�|j�}t	|�|_t	|D�cgc]}t
|t�r|��c}�|_|D]}d||<�	t	|jr|jj�nd�D]}|j|��d|_ycc}w)z�
        We, or something we depend on, have changed.

        By the time this is called, the things we depend on,
        such as our bases, should themselves be stable.
        Nr>)rPrM�clearr�r�rR�
isinstancerrQrNr?r�)r+�originally_changed�implied�	ancestors�ancestorr�s      rr�zSpecification.changed�s�����
��-�-���
�
���'�'�)�	��Y�'����y� �8�!+�H�n�!E�'� �!���"�	#�H� "�G�H��	#��$�:J�:J�t�/�/�4�4�6�PR�S�	2�I����0�1�	2���
��! s�
C
c#�xK�i}|jD]%}|j�D]}||vs�d||<|����'y�w)�DReturn an iterator for the interfaces in the specification.
        rN)r��
interfaces)r+�seen�baser]s    rr�zSpecification.interfaces�sL�������N�N�	$�D�!�_�_�.�
$�	��D�(�&'�D��O�#�O�
$�	$�s�):�:c�6�||jvxr
|xs||k7S)z�Does the specification extend the given interface?

        Test whether an interface in the specification extends the
        given interface
        r\)r+r]�stricts   r�extendszSpecification.extends	s)���d�m�m�+�6��*�4�$�)�"3�	rc�.�tj||�SrE)r��ref)r+�callbacks  rr�zSpecification.weakrefs���{�{�4��*�*rc��|j}|�	ix}|_|j|�}|�+|jD]}|j|�}|��|||<n|�|S|S)z+Query for an attribute description
        )rPr:rQ�direct)r+r~r;�attrs�attr�ifaces      rr:zSpecification.getst���
�
���=�$&�&�E�D�M��y�y�����<����
���|�|�D�)���#�"&�E�$�K��	
��,�w�0�D�0r)r>)TrE)r(rFrGr)r_r�rLr^rUr,r�r�r�r��_Specification__setBasesr��calculate_ror�r�r�r�r�r�r:r>rrr	r	Qs���
��I�
�E�$�/�/�K�"�-�-�J�&�$� �� �
L�
+�
�� ��
�I�$��7�r�@$�	�+�1rr	c�,�eZdZdZd�Zed��Zd�Zy)�_InterfaceMetaClassr>c��tjd�jd}tjd}t|t�rtjd}||d<tj||||�}||_	|S)Nrr(rFr�)
rr�	f_globalsrz�__dict__r��str�type�__new__�_InterfaceMetaClass__module)rZr~r�r�rF�moduledescr�kinds       rr�z_InterfaceMetaClass.__new__ssv��
�]�]�1�%�/�/�
�;�
�$�,�,�\�:���k�3�'�(�0�0�1F�G�K�)��l���|�|�C��u�e�4��"��
��rc��|jSrE)r��rZs rrFz_InterfaceMetaClass.__module__�s���|�|�rc�N�dj|j|j�S)Nz<class '{}.{}'>)�formatr�r(r�s r�__repr__z_InterfaceMetaClass.__repr__�s#�� �'�'��L�L��L�L�
�	
rN)r(rFrGr_r�r�r�r>rrr�r�(s(��R�I��$����
rr�rr_r>c��tjd�j}|jti�}|||j
<tS)a�
    Convert a method specification to an actual method of the interface.

    This is a decorator that functions like `staticmethod` et al.

    The primary use of this decorator is to allow interface definitions to
    define the ``__adapt__`` method, but other interface methods can be
    overridden this way too.

    .. seealso:: `zope.interface.interfaces.IInterfaceDeclaration.interfacemethod`
    r)rrrr�INTERFACE_METHODSr(r)�funcr�methodss   r�interfacemethodr��s?���}�}�Q��(�(�H��!�!�"3�R�8�G�!�G�D�M�M�� � rc��eZdZdZ		dd�Z		dd�Zd�Zd�Zd�Zd�Z	dd	�Z
d
�Zdd�Zd�Z
e
Zd
�Zd�Zdd�Zdd�Zdd�Zd�Zd�Zd�Zd�Zd�Zd�Zy)rz�
    Prototype (scarecrow) Interfaces Implementation.

    Note that it is not possible to change the ``__name__`` or ``__module__``
    after an instance of this object has been constructed.
    Nc�r�t|t�sJ�|xsi}|jtd�}|rs|j	d|vrd|jd�ini�d|vrd|d<t|t�r|f}n|turtf}n|tf}t|�|dz||�}tj|�S)N�
__classcell__r�r�_CALL_CUSTOM_ADAPTz<WithCustomMethods>)r�r��popr��update�
issubclass� _InterfaceClassWithCustomMethodsrr��_InterfaceClassBaser�)rZr~r�r�r)rF�needs_custom_class�	cls_basess        rr�zInterfaceClass.__new__�s����%��'�'�'�����"�Y�Y�'8�$�?����%�%�"�e�+�!�%�)�)�O�"<�=��
�
�0�0�;<�"�#7�8��#�?�@� �F�	���&�=�?�	� �"B�C�	��$�s�)��,�,��"��C�#�*�*�3�/�/rc���td�|D��std��|�i}|�H|jd�}t|t�r|d=n#	tjd�jd}tj|||�|jd�}|�t|t�s|�|}|d=|�d}tj|||�|jtd�}|�*|j!�D]\}}	|j#||	��t$j||�|j'|�|_dj+||�|_y#ttf$rY��wxYw)	Nc3�<K�|]}t|t����y�wrE)r�r)�.0r�s  r�	<genexpr>z*InterfaceClass.__init__.<locals>.<genexpr>�s����F��:�d�N�3�F�s�zExpected base interfacesrFrr(r)rD�{}.{})�allr�r:r�r�rrr�rer6rzr,�	Attributer$r�r�itemsrCr	�_InterfaceClass__compute_attrs�_InterfaceClass__attrsr��__identifier__)
r+r~r�r�r)rF�d�tagged_datar�vals
          rr,zInterfaceClass.__init__�sa��
�F��F�F��6�7�7��=��E������<�0�J��*�c�*��,�'��"%���q�!1�!;�!;�J�!G�J�	���t�T�:�6�

�I�I�i� ���=��a��+��?��G��)�$��?��G�����t�W�-��i�i��T�2���"�'�-�-�/�
.���S��#�#�C��-�
.�	���t�U�+��+�+�E�2���%�n�n�Z��>����9'��1����s�
"E�E �E c	����fd�}|j�D��cic]\}}|dvr|tur
||||���c}}Scc}}w)Nc���t|t�r�|_|js||_|St|t�rt|�|��}|St
d|z��)N)r~zConcrete attribute, )r�r�r]r(r�fromFunction�InvalidInterface)�aname�avalr+s  �r�update_valuez4InterfaceClass.__compute_attrs.<locals>.update_values]����$�	�*�!%����}�}�$)�D�M�
�K�	�D�,�/�#�D�$�U�;���K�'�'=��'E�F�Fr)�
__locals__rG�__annotations__)r�r)r+r�rrrs`    r�__compute_attrszInterfaceClass.__compute_attrssX���		� %�{�{�}�
���t�����1�1�
�<��t�,�,�
�	
��
s� >c#�K�|��y�w)r�Nr>r/s rr�zInterfaceClass.interfaces$s
�����
�s�c��|jSrE)r�r/s r�getBaseszInterfaceClass.getBases)s���~�~�rc�2�||k(xs|j|�S)zSame interface or extends?)r�)r+rgs  r�isEqualOrExtendedByz"InterfaceClass.isEqualOrExtendedBy,s���u�}�3��
�
�d� 3�3rc��|s|jj�S|jj�}|jD]5}|j	t
j
|j|����7|j�S)z4Return the attribute names defined by the interface.)r�r?�copyr�r��dict�fromkeys�names�r+r��rr�s    rrzInterfaceClass.names0sg����<�<�$�$�&�&��L�L������N�N�	5�D�
�H�H�T�]�]�4�:�:�c�?�3�4�	5��v�v�x�rc�8�t|jd���S)NT)r�)�iterrr/s r�__iter__zInterfaceClass.__iter__<s���D�J�J�4�J�(�)�)rc��|s|jj�Si}|jddd�D]+}|jt	|j|����-|j|j�|j�S)z=Return attribute names and descriptions defined by interface.Nrd)r�r�r�r�r�namesAndDescriptionsrs    rrz#InterfaceClass.namesAndDescriptions?ss����<�<�%�%�'�'����N�N�4�R�4�(�	;�D�
�H�H�T�$�3�3�C�8�9�:�	;�	
��������w�w�y�rc�B�|j|�}|�|St|��)z4Return the attribute description for the given name.)r:r6�r+r~rs   r�getDescriptionForz InterfaceClass.getDescriptionForLs#���H�H�T�N���=��H��t�n�rc�(�|j|�duSrE�r:�r+r~s  r�__contains__zInterfaceClass.__contains__Vs���x�x��~�T�)�)rc�8�|jj|�SrE)r�r:rs  rr�zInterfaceClass.directYs���|�|����%�%rc�&�|j||�SrEr)r+r~r;s   r�queryDescriptionForz"InterfaceClass.queryDescriptionFor\s���x�x��g�&�&rc���|jD]"}|jdd�D]}	||��
�$|rt|��y#t$r}|�|j|�n�Yd}~�Ad}~wwxYw)z&validate object to defined invariants.rr>N)rQrHrr)r+r��errorsr�r�errors      r�validateInvariantsz!InterfaceClass.validateInvariants_s���\�\�	�E�"�9�9�,��K�
�	���c�N�
�	���&�/�!���
���)��
�
�e�,��-���s�A�	A(�	A#�#A(c�l�|jD]$}|j|t�}|tus�"|cS|S)z�
        Queries for the value associated with *tag*, returning it from the nearest
        interface in the ``__iro__``.

        If not found, returns *default*.
        )rQrHr�)r+r7r;r�r s     rr<zInterfaceClass.queryTaggedValueos=���\�\�	�E��0�0��g�>�E��G�#���	��rc�Z�|j|t��}|turt|��|S)r5)r;)r<r�r6rBs   rr8zInterfaceClass.getTaggedValue|s.���%�%�c�7�%�;���G���3�-���rc�z�t�}|jD]!}|j|j���#|S)z Returns a list of all tags. )�setrQr�rJ)r+r?r�s   rr@z!InterfaceClass.getTaggedValueTags�s6���u���L�L�	9�D��K�K��5�5�7�8�	9��rc��	|jS#t$r=t|�}dj|jj
|�}||_|cYSwxYw)Nz<{} {}>)�_v_reprrer�r��	__class__r(rs   rr�zInterfaceClass.__repr__�sQ��	��<�<����	��t�9�D�� � ����!8�!8�$�?�A��D�L��H�		�s��AA�Ac�^�|j}|j}|rdj||�}|S)Nr�)r(r{r�)r+r~�ms   r�__str__zInterfaceClass.__str__�s.���}�}��������>�>�!�T�*�D��rc�v�	||�S#t$r%tj�dj��YywxYw)N�)r�r�exc_info�tb_nextr�s  rr�zInterfaceClass._call_conform�sH��
	��4�=� ���	��|�|�~�a� �(�(�4��5��	�s�
�+8�8c��|jSrEr.r/s r�
__reduce__zInterfaceClass.__reduce__�s���}�}�r)Nr>NNN)r>NNN)FrE)r(rFrGr)r�r,r�r�r
rrrrr�__getitem__rr�r"r&r<r8r@r�r0r�r6r>rrrr�s����?C��0�<<@� �1?�f
�8�
�4�
�*���$�K�*�&�'�"� ������&r�	Interfacezzope.interface)rFc��tfSrE)r8r>rrr�r��s��I�<�rc��eZdZdZy)r�z_
    Marker class for interfaces with custom methods that override InterfaceClass methods.
    N)r(rFrGr)r>rrr�r��s��rr�c�&�eZdZdZdZd�Zd�Zd�Zy)r�zAttribute descriptions
    Nc��y)z/Return extra data to put at the end of __str__.rDr>r/s r�
_get_str_infozAttribute._get_str_info�s��rc���d}|j�3|jjdz|jjzdz}||jxsdz|j�zS)NrD�.z	<unknown>)r]rFr(r=)r+�ofs  rr0zAttribute.__str__�s[��
���>�>�%����*�*�S�0�4�>�>�3J�3J�J�S�P�B��T�]�]�1�k�2�T�5G�5G�5I�I�Irc��djt|�jt|�jt	|�|�S)Nz<{}.{} object at 0x{:x} {}>)r�r�rFr(�idr/s rr�zAttribute.__repr__�s9��,�3�3���J�!�!���J����t�H��	
�	
r)r(rFrGr)r]r=r0r�r>rrr�r��s����I��J�
rr�c�`�eZdZdZdxZZdxZxZZd�Z	d�Z
d�Zee	e
e�Z
d�Zd�Zd	�ZeZy)
�Methodz�Method interfaces

    The idea here is that you have objects that describe methods.
    This provides an opportunity for rich meta-data.
    r>Nc�6�|j�iS|jSrE��	_optionalr/s r�
_get_optionalzMethod._get_optional�s���>�>�!��I��~�~�rc��||_yrErF)r+�opts  r�
_set_optionalzMethod._set_optional�s	����rc��d|_yrErFr/s r�
_del_optionalzMethod._del_optional�s	����rc�B�t|j|j��rE)�BrokenImplementationr]r()r+�args�kws   rr`zMethod.__call__�s��"�4�>�>�4�=�=�A�Arc�v�|j|j|j|j|jd�S)N��
positional�required�optional�varargs�kwargsrSr/s r�getSignatureInfozMethod.getSignatureInfo�s/��"�o�o� �M�M� �M�M��<�<��+�+�	�	rc	��g}|jD]V}|j|�||jj�vs�1|dxxdt	|j|�zz
cc<�X|j
r|jd|j
z�|jr|jd|jz�ddj|�zS)Nrd�=�*z**z(%s)z, )rTrrVr?�reprrWrX�join)r+�sig�vs   r�getSignatureStringzMethod.getSignatureStrings��������	8�A��J�J�q�M��D�M�M�&�&�(�(��B��3��d�m�m�A�&6�!7�7�7��	8��<�<��J�J�s�T�\�\�)�*��;�;��J�J�t�d�k�k�)�*���	�	�#��&�&r)r(rFrGr)rTrUrGrWrXrHrKrMr�rVr`rYrar=r>rrrDrD�sV�����J��#'�'�I�'��&�����
�}�m�D�H�B��'�'�MrrDc	��|xs|j}t||j�}t|dd�xsd}|j}|j
|z
}|j|d}i}	t|�}
|
s
t|dd�}
||
z
}|dkr||d}d}|	jtt||d|���|d||_|d||_|	|_
|}|jtzr|||_|dz}nd|_|jt"zr|||_nd|_||_|j(j+�D]\}
}|j-|
|��|S)N�__defaults__r>�__defaults_count__rr)r(rDr)�getattr�__code__�co_argcount�co_varnames�lenr�r�ziprTrUrV�co_flags�
CO_VARARGSrW�CO_VARKEYWORDSrXr]r�r�rC)r�r]�imlevelr~�method�defaults�code�narrJ�defaults_count�nr�argnorr s               rrrsr��� �4�=�=�D�
�D�$�,�,�
'�F��t�^�T�2�8�b�H��=�=�D�	
�	�	�G�	#�B����W�X�&�E�
�C���]�N��!��';�Q�?��	�n�	�B�	�A�v��R�C�D�>��
���J�J�t�C��b�c�
�H�-�.�/��c�r�
�F���C�R�j�F�O��F�O��E��}�}�z�!��u������	������}�}�~�%��e���
���
� �F���m�m�)�)�+�*�
��U����c�5�)�*��Mrc�^�t|t�r
|j}n|}t||d|��S)Nr)rnr~)r�r�__func__r)�methr]r~r�s    r�
fromMethodryDs+���$�
�#��}�}������i���>�>rc���ddlm}ddlm}|t|�ddlm}|t|�ddlm}|t|�ddlm	}|t|�ddlm}|t|�y)Nr)�classImplements)�IElement)�
IAttribute)�IMethod)�ISpecification)�
IInterface)
�zope.interface.declarationsr{�zope.interface.interfacesr|r$r}r�r~rDrr	r�r)r{r|r}r~rr�s      r�_wirer�MsF��;�2��G�X�&�4��I�z�*�1��F�G�$�8��M�>�2�4��N�J�/r)rY)rU)r)rO)�_empty)NrNr�)5r)r�typesrrr��zope.interface._compatr�zope.interface.exceptionsr�zope.interface.rorr��zope.interface�__all__rlrmrr��objectrr�rr"r$�SpecificationBasePyrLrbrzr
r	r�r�r�r�rr8r�r�rRr�r�r�rDrryr�r�rYrUrrOr�r>rr�<module>r�s��������.�-�0�����
���+��+�����
�(��!�!�:2�:2�z��
�+�+�
�+�\K�K�\
�M�0�2E�M�
�M�^�B��0�
�T1�%�T1�ne
�$�e
�P*���M�7�+��"��	��!�$D�(�D�L
�;�3C�D�	�/�	��	���)�����Y�L�(�(�(��
������~��
��
�>0'�Y�0'�f1�h?�0�*6�2�6�:�
/�
���f�f�%r

Zerion Mini Shell 1.0