%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/fax/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/fax/__pycache__/soapfax.cpython-312.pyc

�

=	f�q�� �ddlZddlZddlZddlmZddlmZmZmZddl	Z	ddl
�ddl�ddlm
Z
mZmZmZddl�ddlmZddlmZe	j*d	e	j,�ZdZd
ZdZd
ZdZdZdZdZd
Z dZ!Gd�de"�Z#Gd�de$�Z%y)�N)�BytesIO)�urllib2_request�
urllib2_parse�
urllib2_error)�*)�device�utils�codes�dime�)�PY3)�
to_bytes_utf8zHTTP/\d.\d\s(\d+)����i�i�	c�z�eZdZdddedfd�Zd�Zd�Zd�Zd�Ze	ee�Z
d�Zd	�Ze	ee�Z
d
�Z			dd�Zy)
�
SOAPFaxDeviceNFc��tj||||||�d|_d|_|jdk(r|j
|_yd|_y)N�net�	localhost)�	FaxDevice�__init__�send_fax_thread�upload_log_thread�bus�host�	http_host)�self�
device_uri�printer_name�callback�fax_type�disable_dbuss      �/usr/share/hplip/fax/soapfax.pyrzSOAPFaxDevice.__init__BsQ��
	���4��'�#�X�'�	)�
 $���!%����8�8�u��!�Y�Y�D�N�(�D�N�c��y)NF�)rs r$�isAuthRequiredzSOAPFaxDevice.isAuthRequiredTs��r%c
��g}t|j��D]v\}}tr3|j|�dt	j
t
|������?|j|�dt	j
|jd������xdj|�}tj|�d||jt|�|fz}tj|�|j|jd��t�}|j!d|d��r	|j!d|d��r�|j#�}tj|�|j%�t&j)|j+d��}	t-|j/d��}	|	t6k(S#t0t2f$rt4}	Y|	t6k(SwxYw)	N�=�utf-8�&zuPOST %s HTTP/1.1
Connection: Keep-alive
User-agent: hplip/2.0
Host: %s
Content-length: %d
Cache-control: No-cache

%si���timeoutr)�list�itemsr
�appendr�quote�str�encode�join�log�debugr�len�log_data�writeEWSr�readEWS�getvalue�closeEWS�http_result_pat�match�decode�int�group�
ValueError�	TypeError�
HTTP_ERROR�HTTP_OK)
r�url�post�s�k�v�data�retr@�codes
          r$rIzSOAPFaxDevice.postWs����������&�	P�D�A�q�����A�}�':�':�3�q�6�'B�C�D����A�}�':�':�1�8�8�G�;L�'M�N�O�		P�
�H�H�Q�K���	�	�!���

�d�n�n�c�!�f�a�(�)��	���T���
�
�d�k�k�'�*�+��i���l�l�4��a�l�0���l�l�4��a�l�0��l�l�n�����S���
�
���%�%�c�j�j��&9�:��	��u�{�{�1�~�&�D��w�����I�&�	��D��w���	�s�F=�=G�Gc�<�|jddt|�i�S)N�/hp/device/set_config.html�	FaxNumber)rIr4)r�nums  r$�setPhoneNumzSOAPFaxDevice.setPhoneNum�s���y�y�5��S��X�7N�O�Or%c��t�}|jd|�tj�j	|j��}|dS)N�(/hp/device/settings_fax_setup_wizard.xmlz'faxsetupwizard-faxvoicenumber-faxnumber�r�	getEWSUrlr	�XMLToDictParser�parseXMLr=�r�stream�	fax_setups   r$�getPhoneNumzSOAPFaxDevice.getPhoneNum�sD��������A�6�J��)�)�+�4�4�V�_�_�5F�G�	��B�C�Cr%c��	|}|j	dd|i�S#ttf$rtjd�Y�:wxYw)Nz
Unicode ErrorrQ�FaxCompanyName)�UnicodeEncodeError�UnicodeDecodeErrorr7�errorrI)r�names  r$�setStationNamezSOAPFaxDevice.setStationName�sI��	'��D��y�y�5�8H�$�7O�P�P��"�#5�6�	'��I�I�o�&�	'�s��$?�?c��t�}|jd|�tj�j	|j��}|dS)NrVz-faxsetupwizard-userinformation-faxcompanynamerWr[s   r$�getStationNamezSOAPFaxDevice.getStationName�sD��������A�6�J��)�)�+�4�4�V�_�_�5F�G�	��H�I�Ir%c
�,�t�}|jd|�tj�j	|j��}|d}	t
|�}tjd|z�|d}	t
|�}tjd|z�tj�}|d}t}|ddkrt }|tk(r
|dkDr|dz}t#|�t#|d�t#|d	�t#|d
�t#|�t#|�t#|d�d�}|tk(rt#|�|d
<|j%d|�S#ttf$r
t}Y��wxYw#ttf$r
t}Y��
wxYw)NrVzfaxsetupwizard-time-timeformatztimeformat: %dzfaxsetupwizard-date-dateformatzdateformat: %dr�rrr�)�
DateFormat�Year�Month�Day�
TimeFormat�Hour�Minute�AMrQ)rrXr	rYrZr=rBrDrE�TIME_FORMAT_AM_PMr7r8�DATE_FORMAT_DD_MM_YYYY�time�	localtime�PMrrr4rI)	rr\r]�
timeformat�
dateformat�t�hr�am_pmrIs	         r$�setDateAndTimezSOAPFaxDevice.setDateAndTime�s|��������A�6�J��)�)�+�4�4�V�_�_�5F�G�	��?�@�
�	+��Z��J�	�	�	�"�Z�/�0��?�@�
�	0��Z��J�	�	�	�"�Z�/�0��N�N���
�q�T�����Q�4�"�9��E��*�*�r�B�w��"�H�B�"�:���Q�q�T���a��d�)��A�a�D�	�"�:���R���q��t�9�
&���*�*��U��D��J��y�y�5�t�<�<��G�I�&�	+�*�J�	+���I�&�	0�/�J�	0�s$�E�=E:�E7�6E7�:F�Fc

��|j�s?t||j|||||||||	�|_|jj	�yy)NTF)�isSendFaxActive�SOAPFaxSendThread�servicer�start)
r�phone_num_list�
fax_file_list�
cover_message�cover_re�
cover_func�preserve_formattingr �update_queue�event_queues
          r$�	sendFaxeszSOAPFaxDevice.sendFaxes�sW���#�#�%�#4�T�4�<�<��Yf�5B�H�j�5H�5A�<�5@�	$B�D� �
� � �&�&�(��r%��r�NFr�NN)�__name__�
__module__�__qualname__�
FAX_TYPE_NONErr(rIrTr^�property�	phone_numrerg�station_namer}r�r'r%r$rr@sl��"&�T��'�#�)�$�'�TP�D���k�2�I�Q�J��N�N�;�L�+=�\SU�KM�15�r%rc�,�eZdZ		dd�Zd�Zd�Zdd�Zy)r�Nc�$�tj||||||||||	|
|�tj�|_t
j
d|jz�|jdk(rd|jjz|_
yd|_
y)Nz	JobId: %srz%s:8295zlocalhost:8295)�
FaxSendThreadrr	�gen_random_uuid�job_idr7r8r�devrr)rr�r�r�r�r�r�r�r�r r�r�s            r$rzSOAPFaxSendThread.__init__�s{��	���t�S�'�>�=�
�H�j�2E�
�<��	6��+�+�-����	�	�+����+�,��7�7�e��&������6�D�N�-�D�Nr%c��"�d}d}d}d}d}d}d}d}d	}	d
}
d}d}
d
}d}
d}|j�}|}g|_||k7�rJ|j�r|}tj	d|z�||k(r1tjd�|j
tddf�|
}�n�||k(r1tj	d�|j
tddf�|
}�n�||k(r1tjd�|j
tddf�|
}�nv||k(r1tjd�|j
tddf�|
}�n@||k(r�tj	ddz�|}		|jj�	|jj|_tj	d|jz�|jj|_tj	d|j z�|jj'��
nn||k(r+tj	ddz�|j)|�}�
n>||k(r+tj	ddz�|j+|�}�
n||k(rmtj	ddz�|	}	t-|�}tj	d|d z�|j
t.d|d f�|jdd}�n�||	k(r+tj	d"dz�|j3�}�nl||
k(r+tj	d#dz�|j5|�}�n<||k(r+tj	d$dz�|j7|�}�n||k(�r�tj	d%dz�|}d}d}d}d}d}d}d}d}d	}d
}d&}d'}|} | |k7�r�|j�rtjd(�|} |rN|j9�}!|!t:j<t:j>fvrtjd)|!z�|} |}tj	d*|| fz�| |k(rd'}|} |}�
n�| |k(rtjd+�d'}|} |}�
n�| |k(rtjd,�d'}|} |}�
n`| |k(rtj	d-�d'}|} |}�
n>| |k(rWtj	d.dz�|} 	|jj�|jj@tBk(�	r�|} �	n�| |k(�ritj	d/dz�	t|jDd0�}"	|"jItJ�}#|jM|#�\
}$}%}&}'}(})}*}+},}-|$d2k7rtjd3�|} n tj	d4|$|%|&|'|(|)|*|+fz�|jN}.d}/d5}0d}1|*tPk(rd6}2n|*tRk(rd7}2n|*tTk(rd8}2tWjXd9�}3|j[|3j]d:��}4tj_|4�tja�rtd;d<�jc|4�|jje�|jjg|4�ti�}5|jjkd=|5d>�?�r 	|jjkd=|5d>�?�r� |5jm�}5tja�rtd@d<�jc|5�tj_|5�|jjo�|jq|5jsd:��ttk(r|} �nw|} �ns| |k(�r�tj	dAdz�ti�}6tw&�D�]Q}7|j�r|} | |k(r�n"	"jItx�}#|j{|#�\}8}9}:};}<}-tj	dB|8|9|:|;|<fz�|9t|k7rtjdCt|z�|6jc|"jI|;��|"jI|<�}=|6jd�	|6jI|;�}4|4dDk(rtjdE�|} �n?|:}>|jN}.tWjXdF�}3t�j��}?|?j�t�j�dGdHt�j�t�|3���|?j�t�j�dDdIt�j�|4��ti�}@|?j�|@�|j[|@jm�dJ�K�}4tj_|4�tja�rtdL|7zd<�jc|4�	|jjg|4�ti�}5	|jjkd=|5d>�?�r 	|jjkd=|5d>�?�r� |5jm�}5tja�rtdM|7zd<�jc|5�tj_|5�|jjo�|jq|5jsd:��ttk7r|} �n|6j�d�|6jd���T|} �n�| |k(�r�tj	dNdz�|jN}.tWjXdO�}3|j[|3j]d:��}4tj_|4�tja�rtdPd<�jc|4�|jjg|4�ti�}5|jjkd=|5d>�?�r 	|jjkd=|5d>�?�r� |5jm�}5tja�rtdQd<�jc|5�tj_|5�|jjo�|jq|5jsd:��ttk(r|} �nH|} �nD| |k(�r�tj	dRdz�|jN}.tWjXdS�}3|j[|3j]d:��}4tj_|4�tja�rtdTd<�jc|4�|jjg|4�ti�}5|jjkd=|5d>�?�r 	|jjkd=|5d>�?�r� |5jm�}5tja�rtdUd<�jc|5�tj_|5�|jjo�|jq|5jsd:��ttk(r|} n�|} n�| |k(r�tj	dVdz�tj	dW�	t�j'�	"j'�t�j�dX�|jjo�|jj'�|} | |k7r��In�||
k(r}tj	dYdz�|j�rWtj	dZ|jDz�	t�j�|jD�tj	d[�|}||k7r��Iyy#t"$rtjd�|}Y�
��wxYw#t"$r/}tjd|j$z�|}Yd}~�
��d}~wwxYw#|jj'�wxYw#t0$r|}tj	d!�Y���wxYw#t"$r/}tjd|j$z�|} Yd}~��nd}~wwxYw#tF$rtjd1�|} Y���wxYw#tF$rtjd1�|} Y�
�wxYw#tF$rtjd1�|} Y�	�'wxYw#tF$rtjd1�|} Y��wxYw#t"$r|} Y��wxYw#t"$r|} Y���wxYw#t�$rY���wxYw#t�$rY���wxYw#t�$rtj	d\�Y���wxYw)]Nr�
����(�2�<�F�P�Z�d�n�x�zSTATE=(%d, 0, 0)zAborted by user.r�zSuccess.zError, aborting.zDevice busy, aborting.z%s State: Get sender infoz********************zSender name=%sz
Sender fax=%szHTTP GET failed!zUnable to open device (%s).z!%s State: Pre-render non-G4 filesz%s State: Get total page countz%s State: Next recipientzProcessing for recipient %srdzLast recipient.z%s State: Render cover pagez%s State: Handle single filez%s State: Merge multiple filesz%s State: Send fax�FzFax send aborted.zD/L error state=%dzSTATE=(%d, %d, 0)zFax send error.zFax device busy.zFax send success.z%s State: Open devicez%s State: BeginJob�rbzUnable to read fax file.shplip_g3zInvalid file header. Bad magic.z>Magic=%s Ver=%d Pages=%d hDPI=%d vDPI=%d Size=%d Res=%d Enc=%d�fax�STANDARD�FINE�	SUPERFINEa�<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><Fax:BeginJob xmlns:Fax="urn:Fax"><ticket xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Fax:Ticket"><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">$job_id</jobId><resolution xsi:type="Fax:Resolution">$res</resolution><delay xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:positiveInteger">$delay</delay><phoneNumber xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">$faxnum</phoneNumber><speedDial xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:positiveInteger">$speeddial</speedDial></ticket></Fax:BeginJob></SOAP-ENV:Body></SOAP-ENV:Envelope>r+zbeginjob.log�wbi r-r.zbeginjob_ret.logz%s State: DownloadPagesz%Page=%d PPR=%d RPP=%d BPP=%d Thumb=%dz#Pixels per line (width) must be %d!r%zNo data!a"<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string" SOAP-ENV:mustUnderstand="1">$job_id</jobId></SOAP-ENV:Header><SOAP-ENV:Body><Fax:DownloadPage xmlns:Fax="urn:Fax"><height xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:positiveInteger">$height</height></Fax:DownloadPage></SOAP-ENV:Body></SOAP-ENV:Envelope>scid:id0s)http://schemas.xmlsoap.org/soap/envelope/simage/g4faxzapplication/dime)�content_typezdownloadpages%d.logzdownloadpages%d_ret.logz%s State: EndJoba<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string" SOAP-ENV:mustUnderstand="1">$job_id</jobId></SOAP-ENV:Header><SOAP-ENV:Body><Fax:EndJob xmlns:Fax="urn:Fax"><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">$job_id</jobId></Fax:EndJob></SOAP-ENV:Body></SOAP-ENV:Envelope>z
endjob.logzendjob_ret.logz%s State: CancelJoba<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string" SOAP-ENV:mustUnderstand="1">$job_id</jobId></SOAP-ENV:Header><SOAP-ENV:Body><Fax:CancelJob xmlns:Fax="urn:Fax"><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">$job_id</jobId></Fax:CancelJob></SOAP-ENV:Body></SOAP-ENV:Envelope>z
canceljob.logzcanceljob_ret.logz%s State: Close sessionzClosing session...rz%s State: CleanupzRemoving merged file: %s�Removedz	Not found)Q�next_recipient_gen�rendered_file_list�check_for_cancelr7r8rc�write_queue�STATUS_IDLE�STATUS_COMPLETED�STATUS_ERROR�STATUS_BUSYr��openr��sender_namer��
sender_fax�Error�msg�close�
pre_render�count_pages�next�STATUS_SENDING_TO_RECIPIENT�
StopIteration�
cover_page�single_file�merge_files�getFaxDownloadState�pml�UPDN_STATE_XFERACTIVE�UPDN_STATE_XFERDONE�device_state�DEVICE_STATE_NOT_FOUND�f�IOError�read�FILE_HEADER_SIZE�decode_fax_headerr��RESOLUTION_STD�RESOLUTION_FINE�RESOLUTION_300DPIr	�cat�format_httpr5r:�is_debug�write�openSoapFax�writeSoapFaxr�readSoapFaxr=�closeSoapFax�get_error_coderArG�range�PAGE_HEADER_SIZE�decode_page_header�PIXELS_PER_LINE�seekr�Message�
add_record�Record�
TYPE_T_URIr�TYPE_T_MIME�generate�truncate�mm�	NameErrorru�sleep�remove_temp_file�os�remove�OSError)Ar�
STATE_DONE�
STATE_ABORTED�
STATE_SUCCESS�
STATE_BUSY�STATE_READ_SENDER_INFO�STATE_PRERENDER�STATE_COUNT_PAGES�STATE_NEXT_RECIPIENT�STATE_COVER_PAGE�STATE_SINGLE_FILE�STATE_MERGE_FILES�STATE_SEND_FAX�
STATE_CLEANUP�STATE_ERROR�next_recipient�state�e�	recipient�recipient_file_list�FAX_SEND_STATE_DONE�FAX_SEND_STATE_ABORT�FAX_SEND_STATE_ERROR�FAX_SEND_STATE_BUSY�FAX_SEND_STATE_SUCCESS�FAX_SEND_STATE_DEVICE_OPEN�FAX_SEND_STATE_BEGINJOB�FAX_SEND_STATE_DOWNLOADPAGES�FAX_SEND_STATE_ENDJOB�FAX_SEND_STATE_CANCELJOB�FAX_SEND_STATE_CLOSE_SESSION�
monitor_state�fax_send_state�	fax_state�ff�header�magic�version�total_pages�hort_dpi�vert_dpi�	page_size�
resolution�encoding�	reserved1�	reserved2r��delay�faxnum�	speeddial�res�soaprMrN�page�p�page_num�ppr�rpp�
bytes_to_read�thumbnail_bytes�	thumbnail�height�m�outputsA                                                                 r$�runzSOAPFaxSendThread.run�s^���
��
��
��
�!#������!�������������
����0�0�2��&��"$����z�!��$�$�&�%���I�I�(�5�0�1��
�%��	�	�,�-�� � �+�q�"�!5�6�%���-�'��	�	�*�%�� � �"2�A�r�!:�;�%���+�%��	�	�,�-�� � �,��2�!6�7�%���*�$��	�	�2�3�� � �+�q�"�!5�6�%���0�0��	�	�5��@�A�'��%�
0����
�
��
0�/3�x�x�/D�/D�D�,��I�I�&6��9I�9I�&I�J�.2�h�h�.@�.@�D�O��I�I�o����&G�H��H�H�N�N�$��/�)��	�	�=��H�I����(9�:���+�+��	�	�:�f�E�F��(�(�)=�>���.�.��	�	�4��?�@�(��� $�^� 4�I��I�I�;�i��>O�O�P��$�$�&A�1�i�PV�FW�%X�Y�'+�&=�&=�a�&@�#��*�*��	�	�7�6�B�C����	�2���+�+��	�	�8�F�C�D��(�(��8���+�+��	�	�:�f�E�F��(�(��8���.�(��	�	�.�&�9�:�,��&'�#�')�$�')�$�&(�#�)+�&�-/�*�*,�'�/1�,�(*�%�+-�(�/2�,� %�
�!;��$�(;�;��,�,�.��	�	�"5�6�)=��$�$(�$<�$<�$>�	�(�S�-F�-F��H_�H_�,`�`��I�I�&:�Y�&F�G�-A�N�$/�E��I�I�1�^�^�4T�T�U�%�)=�=�(-�
�)A�� -��'�+?�?��	�	�"3�4�(-�
�)E�� +��'�+>�>��	�	�"4�5�(-�
�)E�� *��'�+A�A��	�	�"5�6�(-�
�)E�� 4��'�+E�E��	�	�"9�V�"D�E�)@��F� �H�H�M�M�O�
 $�x�x�4�4�8N�N�1E��'�+B�B��	�	�"6�&�"A�B�%�!%�d�f�f�d�!3�B�%�%'�W�W�-=�%>�F�JN�I_�I_�`f�Ig�G��w��X�x��&��)�Y� �K�/��I�I�&G�H�-A�N��I�I�&f�',�g�{�H�h�Xa�'1�8�'=�'=�>�"&���� !��!*�5�!1��$%�	�%��7�",�C�'�?�:�"(�C�'�+<�<�"-�C�$�y�y�Y� Z�� $�/�/����G�0D�E�����T�*��<�<�>� ���6�<�<�T�B����,�,�.����-�-�d�3�%�i��"�h�h�2�2�4��a�2�H� �#�h�h�2�2�4��a�2�H�"�l�l�n���<�<�>� �!3�T�:�@�@��E����S�)����-�-�/��.�.�s�z�z�'�/B�C�w�N�-I�N�-A�N�(�+G�G��	�	�";�v�"F�G�&�y��!&�{�!3�WC�A�#�4�4�6�1E��-�1E�E� %�)�)+���1A�)B��!%� 7� 7�� ?�Z�H�c�3�
��PY� �I�I�&M�'/��c�=�/�&Z�'[�\� #�o�5� #�	�	�*O�Ra�*a� b� �J�J�r�w�w�}�'=�>�(*����(@�I� �I�I�a�L�&�'+�y�y��'?�� $�s�{� #�	�	�*� 5�1E�� %�%(�F�%)�[�[�F�#(�9�9�i�$j�D�!%����A��L�L����Z�Am� $����t�1D�*F�G��L�L����S�.�$�JZ�JZ�\`�)a�b�%,�Y�F��J�J�v�.�#'�#3�#3�F�O�O�4E�Tf�#3�#g�D��L�L��.�"�|�|�~�+/�0E��0I�4�+P�+V�+V�W[�+\�F� $��� 5� 5�d� ;�#*�)�C�F�&*�h�h�&:�&:�4��a�&:�&P�$(�'+�h�h�&:�&:�4��a�&:�&P�
#&�,�,�.�C�"�|�|�~� $�%>��%B�D� I� O� O�PS� T��L�L��-� �H�H�1�1�3�#�2�2�3�:�:�g�3F�G�7�R�1E�� %� �M�M�!�,� �I�I�a�L�iWC�n.C�N�(�+@�@��	�	�"4��"?�@�!%����$�y�y�R� S�� $�/�/����G�0D�E�����T�*��<�<�>� ��t�4�:�:�4�@����-�-�d�3�%�i��"�h�h�2�2�4��a�2�H� �#�h�h�2�2�4��a�2�H�"�l�l�n���<�<�>� �!1�4�8�>�>�s�C����S�)����-�-�/��.�.�s�z�z�'�/B�C�w�N�-C�N�-A�N�'�+C�C��	�	�"7�6�"B�C�!%����$�y�y�X� Y�� $�/�/����G�0D�E�����T�*��<�<�>� ��$�7�=�=�d�C����-�-�d�3�%�i��"�h�h�2�2�4��a�2�H� �#�h�h�2�2�4��a�2�H�"�l�l�n���<�<�>� �!4�d�;�A�A�#�F����S�)����-�-�/��.�.�s�z�z�'�/B�C�w�N�-I�N�-A�N�(�+G�G��	�	�";�v�"F�G��	�	�"6�7�!��H�H�J�!��H�H�J��
�
�1�
����-�-�/������(�)<��Y	%�(;�;�^	�-�'��	�	�-��8�9��(�(��I�I�8�4�6�6�A�B�/��	�	�$�&�&�)��	�	�)�,�#��O
�z�!��Z %�0��I�I�&8�9�$/�E�0��!�,��	�	�"?�!�%�%�"G�H� +���,���H�H�N�N�$��&%��)�E��I�I�/�0����f %�B��I�I�&C�a�e�e�&K�L�-A�N��B�� '�%��I�I�&@�A�-A�N�$�%�� '�%��I�I�&@�A�-A�N�$�%��L$+�)� #�	�	�*D� E�1E�� (�)��($+�&� #�	�	�*D� E�1E�� %�&��<$)�F�1E��F��$)�F�1E��F��B )�!� �!��
 )�!� �!��&#�/��	�	�+�.�/�sP�!~0�<A:~	�AA@
�A@1�3AA,�
AB�AB:�AC!�%AD	�=AD�AD-�AD=�
4AE
�	 ~-�)+�,~-�-+�0	(�9$#�+�#(�(+�+A@�@
 A@.�@-A@.�@1	AA)�@:$AA$�A$AA)�A, AB�BAB�B AB7�B6AB7�B: AC�CAC�C! AD�DAD�D	AD�DAD�DAD*�D)AD*�D-	AD:�D9AD:�D=	AE
�E	AE
�E
AE/�E.AE/c��|stStj|�}|�tS	t	|jd��}|S#ttf$r
t}Y|SwxYw)Nr)rFr?r@rGrBrCrDrE)rrNr@rOs    r$r�z SOAPFaxSendThread.get_error_code�sa���:�%��%�%�c�*���=��.�	��u�{�{�1�~�&�D�����I�&�	��D���	�s�A�A�Ac�~�|j}t|�}tjd�j	d�|zS)Nz�POST / HTTP/1.1
Host: $host
User-Agent: hplip/2.0
Content-Type: $content_type
Content-Length: $soap_len
Connection: close
SOAPAction: ""

r+)rr9r	r�r5)rr$r�r�soap_lens     r$r�zSOAPFaxSendThread.format_http�s<���~�~���t�9���	�	��	��&��/�D�!�	!r%r�)ztext/xml; charset=utf-8)r�r�r�rr0r�r�r'r%r$r�r��s��UZ�AE�.�&#�D�!r%r�)&�sysr�ru�ior�base.sixext.movesrrr�re�base.g�
base.codes�baserr	r
rr��base.sixextr
r�compile�Ir?rs�TIME_FORMAT_24HR�DATE_FORMAT_MM_DD_YYYYrt�DATE_FORMAT_YYYY_MM_DDrrrwrGrFr�rrr�r�r'r%r$�<module>rAs���2�	���K�K�	���+�+���%��"�*�*�5�r�t�t�<����������������

��
�
���\�I�\�@p!�
�p!r%

Zerion Mini Shell 1.0