https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/ecs/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/ecs/__pycache__/item.cpython-310.pyc
o

�S�a��@sdddlZddlZddlmZddlmZmZGdd�dejj	�Z
Gdd�de
�ZGdd	�d	e
�ZdS)
�N)�escape)�six�StringIOc@sJeZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS)�
ResponseGroupz�A Generic "Response Group", which can
    be anything from the entire list of Items to
    specific response elements within an itemNcCs$||_||_g|_d|_t�|_dS)�Initialize this ItemN)�_connection�	_nodename�	_nodepath�_curobjr�_xml)�self�
connection�nodename�r�//usr/lib/python3/dist-packages/boto/ecs/item.py�__init__!s
zResponseGroup.__init__cCsd|jj|jfS)Nz<%s: %s>)�	__class__�__name__�__dict__�rrrr�__repr__)szResponseGroup.__repr__cCs|j�|�S�N)r�get)r�namerrrr/szResponseGroup.getcCs||j|<dSr)r)rr�valuerrr�set2szResponseGroup.setcCsd|j|j��|jfS)Nz<%s>%s</%s>)rr�getvaluerrrr�to_xml5szResponseGroup.to_xmlcCsd|j�d|�|j�|�t|j�dkr%t|j�}|�||�||_dS|jr0|j�	|||�dS)Nz<%s>�)
r�writer	�append�lenrrrr
�startElement)rr�attrsr
�objrrrr";s
�zResponseGroup.startElementcCs�|j�dt|��dd�|f�t|j�dkrdSd}|�|�}t|j�dkr8|s+|s1|�||�|jr7d|_n|jrC|j�	|||�|j�
�dS)Nz%s</%s>z	&amp;amp;z&amp;rr)rrr�replacer!r	rrr
�
endElement�pop)rrrr
r$�curvalrrrr&Fs 
�
zResponseGroup.endElement)NN)r�
__module__�__qualname__�__doc__rrrrrr"r&rrrrrs
rc@seZdZdZddd�ZdS)�Itemz
A single ItemNcCst�||d�dS)rr,N)rr)rr
rrrr\sz
Item.__init__r)rr)r*r+rrrrrr,Ysr,c@sFeZdZdZddd�Zdd�Zdd�Zd	d
�ZeZdd�Z	d
d�Z
dS)�ItemSetzbA special ResponseGroup that has built-in paging, and
    only creates new Items on the "Item" tagrcCsNt�||d�g|_d|_||_||_||_d|_d|_d|_	d|_
g|_dS)N�ItemsrF)rr�objs�iter�page�action�params�curItem�
total_results�total_pages�is_valid�errors)rr
r2r3r1rrrrds
zItemSet.__init__cCs6|dkrt|j�|_dS|jdur|j�|||�dS)Nr,)r,rr4r")rrr#r
rrrr"qs
�zItemSet.startElementcCs�|dkr	||_dS|dkr||_dS|dkr|dkrd|_dS|dkr.|j�|dd��dS|dkr;||jd	d<dS|d
krT|j�|j�|j�|j�	��d|_dS|jdura|j�
|||�dS)N�TotalResults�
TotalPages�IsValid�TrueT�Code)r=�Messager>���r,)r5r6r7r8r r/r4rrrr&)rrrr
rrrr&xs0���	��
�zItemSet.endElementc	Cs�|jdurt|j�|_zt|j�WStyBd|_g|_t|j�t|j�krA|jd7_|j�|j	|j
|j|�t|�YS�w)zSpecial paging functionalityNr)r0r/�next�
StopIteration�intr1r6r�get_responser2r3rrrr�__next__�s
�zItemSet.__next__cCs|Srrrrrr�__iter__�szItemSet.__iter__cCs|D]}qt�|�S)z"Override to first fetch everything)rr)r�itemrrrr�s
zItemSet.to_xmlN)r)rr)r*r+rr"r&rDr@rErrrrrr-`s

r-)
�xml.sax�xml�cgi�htmlr�boto.compatrr�sax�ContentHandlerrr,r-rrrr�<module>s=

https://t.me/RX1948 - 2025