__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

���g;���X�SSKJr SSKrSSKrSSKrSSKJrJrJr SSK	r	SSK
r
SSKrSSKrSSKJ
s Jr SSK7 SSK7 SSK7 SSKJrJrJrJrJr SSKJr SSK7 \	R2"S\	R45rS	rS
rSrSrS
r Sr!Sr"Sr#Sr$Sr%Sr&Sr'Sr("SS\)5r*"SS\+5r,g)�)�divisionN)�BytesIO�
to_bytes_utf8�
to_unicode)�*)�device�utils�codes�dime�status)r�zHTTP/\d.\d\s(\d+)������i�i��i�a�<?xml version="1.0" encoding="UTF-8"?><!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN.--><prdcfgdyn2:ProductConfigDyn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:prdcfgdyn2="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16" xmlns:prdcfgdyn="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16 ../schemas/ledm2/ProductConfigDyn.xsd http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05 ../schemas/ProductConfigDyn.xsd http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ ../schemas/dd/DataDictionaryMasterLEDM.xsd"><prdcfgdyn2:ProductSettings><dd:TimeStamp>%s</dd:TimeStamp></prdcfgdyn2:ProductSettings></prdcfgdyn2:ProductConfigDyn>a�<?xml version="1.0" encoding="UTF-8"?><!--Sample XML file generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)--><faxcfgdyn:FaxConfigDyn xmlns:faxcfgdyn="http://www.hp.com/schemas/imaging/con/ledm/faxconfigdyn/2009/03/03" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:fax="http://www.hp.com/schemas/imaging/con/fax/2008/06/13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/faxconfigdyn/2009/03/03 ../schemas/FaxConfigDyn.xsd"><faxcfgdyn:SystemSettings><dd:PhoneNumber>%s</dd:PhoneNumber></faxcfgdyn:SystemSettings></faxcfgdyn:FaxConfigDyn>a�<?xml version="1.0" encoding="UTF-8"?><!--Sample XML file generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)--><faxcfgdyn:FaxConfigDyn xmlns:faxcfgdyn="http://www.hp.com/schemas/imaging/con/ledm/faxconfigdyn/2009/03/03" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:fax="http://www.hp.com/schemas/imaging/con/fax/2008/06/13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/faxconfigdyn/2009/03/03 ../schemas/FaxConfigDyn.xsd"><faxcfgdyn:SystemSettings><dd:CompanyName>%s</dd:CompanyName></faxcfgdyn:SystemSettings></faxcfgdyn:FaxConfigDyn>a<?xml version="1.0" encoding="UTF-8"?><FaxPCSendDyn xmlns="http://www.hp.com/schemas/imaging/con/ledm/printtofaxdyn/2008/11/24" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/printtofaxdyn/2008/11/24 ../schemas/FaxPCSendDyn.xsd"><FaxPCSendConfig><FaxTxPhoneNumber>%s</FaxTxPhoneNumber><NumPages>%d</NumPages><TTI_Control>TTI_Off</TTI_Control></FaxPCSendConfig></FaxPCSendDyn>aH<?xml version="1.0" encoding="UTF-8" ?><FaxPCSendDyn xmlns="http://www.hp.com/schemas/imaging/con/ledm/printtofaxdyn/2008/11/24" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/printtofaxdyn/2008/11/24 ../schemas/FaxPCSendDyn.xsd"><PageConfig><PageNum>%d</PageNum><Width>1728</Width><Height>2200</Height><ImageType>BW</ImageType><Compression>mh</Compression><HorizontalDPI>%d</HorizontalDPI><VerticalDPI>%d</VerticalDPI></PageConfig></FaxPCSendDyn>a�<?xml version="1.0" encoding="UTF-8"?><Job xmlns="http://www.hp.com/schemas/imaging/con/ledm/jobs/2009/04/30" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:fax="http://www.hp.com/schemas/imaging/con/fax/2008/06/13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/jobs/2009/04/30 ../schemas/Jobs.xsd"><JobUrl>%s</JobUrl><JobState>Canceled</JobState></Job>c��\rSrSrSSS\S4SjrSrSrSrSr	\
"\	\5rS	rS
r
\
"\
\5rSSjrSrS
rg)�
LEDMFaxDevice�HNFc��[RXUX4U5 SUlSUlURS:XaUR
UlgSUlg)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/ledmfax.pyr�LEDMFaxDevice.__init__JsM��
	���4�'�#�'�	)�
 $���!%����8�8�u��!�Y�Y�D�N�(�D�N�c��g)NF��rs r%�isAuthRequired�LEDMFaxDevice.isAuthRequired\s��r'c�J�SXR[U5U4-n[RU5 UR	URS55 [
5nURSUSS9(aURSUSS9(aMUR5n[RU5 UR5 [RU5nUc[$[URS55nU[:H$![[ 4a ["nU[:H$f=f)NzbPUT %s HTTP/1.1
Connection: Keep-alive
User-agent: hplip/2.0
Host: %s
Content-length: %d

%s�utf-8����timeoutr
)r�len�log�log_data�	writeLEDM�encoder�readLEDM�getvalue�	closeLEDM�http_result_pat�match�HTTP_OK�int�group�
ValueError�	TypeError�
HTTP_ERROR)r�url�post�data�responser<�codes       r%�put�LEDMFaxDevice.put_s����

�n�n�c�$�i��.�
/��	���T�����t�{�{�7�+�,��9���m�m�C��1�m�5���m�m�C��1�m�5�5��$�$�&�����X�������%�%�h�/���=��.�	��u�{�{�1�~�&�D��w�����I�&�	��D��w���	�s�D�D"�!D"c�h�[U-n[RSU-5 URSU5$)NzSetPhoneNum:xml Value:%s�/DevMgmt/FaxConfigDyn.xml)�setPhoneNumXMLr4�debugrH)r�num�xmls   r%�setPhoneNum�LEDMFaxDevice.setPhoneNum|s0���s�#���	�	�,�c�1�2��x�x�3�S�9�9r'c�&�URSS5$)NrKz>faxcfgdyn:faxconfigdyn-faxcfgdyn:systemsettings-dd:phonenumber)�readAttributeFromXmlr*s r%�getPhoneNum�LEDMFaxDevice.getPhoneNum�s!���(�(�)D�FF�G�	Gr'c��[U-nURSW5$![[4a [R	S5 N9f=f)Nz
Unicode ErrorrK)�setStationNameXML�UnicodeEncodeError�UnicodeDecodeErrorr4�errorrH)r�namerOs   r%�setStationName�LEDMFaxDevice.setStationName�sH��	&�"�T�)�3��x�x�3�S�9�9��"�#5�6�	&��9�9�_�%�	&�s�	�%A�Ac�8�[URSS55$)NrKz>faxcfgdyn:faxconfigdyn-faxcfgdyn:systemsettings-dd:companyname)rrSr*s r%�getStationName�LEDMFaxDevice.getStationName�s)���$�3�3�4O�QQ�R�S�	Sr'c

��UR5(d;[XRXX4UUXxU	5UlURR	5 gg)NTF)�isSendFaxActive�LEDMFaxSendThread�servicer�start)
r�phone_num_list�
fax_file_list�
cover_message�cover_re�
cover_func�preserve_formattingr!�update_queue�event_queues
          r%�	sendFaxes�LEDMFaxDevice.sendFaxes�sQ���#�#�%�%�#4�T�<�<��5B�j�5H�5A�5@�	$B�D� �
� � �&�&�(��r'c��[R"5nSUSUSUSUSUSUS4-n[U-n[R	SU-5 URS	U5(ag
[R	S5 g)
Nz%4d-%02d-%02dT%02d:%02d:%02drr
�r�r0zsetDateTimeXML Value:%sz/DevMgmt/ProductConfigDyn.xmlTzAFailed to set date and time. Set date and time using front panel.F)�time�	localtime�setDateTimeXMLr4rMrH)r�t�date_bufrOs    r%�setDateAndTime�LEDMFaxDevice.setDateAndTime�s����N�N���1�Q�q�T�1�Q�4��1��q��t�Q�q�T�ST�UV�SW�4X�X���x�(���	�	�+�S�0�1��8�8�3�S�9�9���I�I�Z�[�r')rrr��r{NFr{NN)�__name__�
__module__�__qualname__�__firstlineno__�
FAX_TYPE_NONErr+rHrPrT�property�	phone_numr\r_�station_namernrx�__static_attributes__r)r'r%rrHsb��"&�T��'�#�)�$��::�G���k�2�I�:�S��N�N�;�L�RT�KM�15��"
r'rc�H�\rSrSrS
SjrSrSrSrSSjrSSjr	S	r
g)rc�Nc��[RXX#UXVXxX�U5 URS:XaSURR-UlgSUlg)Nrz%s:8080zlocalhost:8080)�
FaxSendThreadrr�devrr)rr�rdrfrgrhrirjrkr!rlrms            r%r�LEDMFaxSendThread.__init__�sK��	���t�'�=�
�j�
��	6��7�7�e��&������6�D�N�-�D�Nr'c�%�SnSnSnSnSnSnSnSnS	n	S
n
SnSn
S
nSn
SnUR5nUn[n/UlSnUU:wGa�UR5(aUn[RSU-5 UU:Xa1[R
S5 UR[SS45 U
nGO3UU:Xa1[RS5 UR[SS45 U
nGO�UU:Xa-[R
S5 URUSS45 U
nGO�UU:Xa1[R
S5 UR[SS45 U
nGO�UU:Xa�[RSS-5 UnURR5 URRUl[RSUR-5 URRUl[RSUR -5 URR'5 G
O�UU:Xa+[RSS-5 UR)U5nG
O�UU:Xa+[RSS-5 UR+U5nG
O]UU:Xam[RSS-5 U	n[-U5n[RSUS -5 UR[.SUS 45 URSSnGO�UU	:Xa+[RS"S-5 UR3W5nGO�UU
:Xa+[RS#S-5 UR5U5nGO�UU:Xa+[RS$S-5 UR7U5nGOWUU:XGa�[RS%S-5 UnSnSnSnSnSnSnSnSnS	nS
nS&n S'n!Un"U"U:wGa�UR5(a[R
S(5 Un"U!(aPUR95n#U#[:R<[:R>4;a[R
S)U#-5 Un"Un[RS*UU"4-5 U"U:XaS'n!Un"UnG
O�U"U:Xa[R
S+5 S'n!U n"UnG
O�U"U:Xa[R
S,5 S'n!U n"UnG
O�U"U:Xa[RS-5 S'n!U n"UnG
OnU"U:XaW[RS.S-5 Un"URR5 URR@[B:XaUn"G
OU"U:XGaC[RS/S-5 [URDS05n$U$RI[J5n%URMU%5u
n&n'n(n)n*n+n,n-n.n/U&[OS25:wa[R
S35 Un"O [RS4U&U'U(U)U*U+U,U-4-5 WS5n0[PU0U(4-n1URSS6[UU15U15n2[RWU25 URRY5 URR[[OU255 []5n3URR_S7U3S8S99(a#URR_S7U3S8S99(aM#URRa5 U3Rc5n3[RWU35 UReU35[f:XaUn"OcUReU35[h:XaU[j::aUn"US:-
nO8U[j:�a[R
S;5 Un"[R
S<5 GOjU3RmS=S[UU355n4U3RmS>S[UU355n5U3RmS?S[UU355n6U3U4U5Ro5n7U7RqS@SA5RqSBSA5n7U7SA:Xa[U3U4U6Ro5n7U7RqS@SA5RqSBSA5n7[RSCU7<SD[sU75<35 [sU75[t:waU7RwSE5n7GO�U"U:XGa�[RSFS-5 []5n8[RSGW(-5 [yU(5GH�n9UR5(aUn"U"U:Xa GOWW$RI[z5n%UR}U%5un:n;n<n=n>n/[RSHU:U;U<U=U>4-5 U;[~:wa[R
SI[~-5 U8R�U$RIU=55 U$RIU>5n?U8R�S5 U8RIU=5n2U2SA:Xa[R
SJ5 Un" GOrURR�W7SK5n@[RSLU@-5 [�U:W)W*4-nAURSU@[UUA5UA5nB[RWUB5 URRY5 URR[UB5 []5n3URR_S7U3S8S99(a#URR_S7U3S8S99(aM#URRa5 U3Rc5n3[RWU35 UReU35[�:waUn"[R
SM5  GOURR�U7SK5nCUR5(aUn"OeUR�U75unDnEUDU:XaBWE[�:XdWE[�:XdWE[�:Xd
WE[�:Xa[RSN5 Un"WEnO	WDU:XaOM}U"U:XdU"U:Xa GObURSWC[UU25SSO5nB[RSPUB-5 URRY5 URR[UB5 [RSQ5 URR[U25 []5n3URR_S7U3SS99(a#URR_S7U3SS99(aM#URRa5 U3Rc5n3[RWU35 UReU35[�:wa[R
SR5 Un" GOU8R�S5 U8R�S5 GM� Un"GO�U"U:XaUn"GO�U"U:XGaQ[RSSS-5 [�W7-nBUR�U7[UUB5UB5n2[RWU25 URRY5 URR[[OU255 []5n3URR_S7U3SS99(a#URR_S7U3SS99(aM#URRa5 U3Rc5n3[RWU35 UReU35[�:XaU n"O�Un"[R
ST5 OzU"U :Xat[RSUS-5 [RSV5 W$R'5 URRa5 URR'5 Un"U"U:waGM�O�UU
:Xa�[RSWS-5 UR�(aX[RSXURD-5 [�R�"URD5 [RSY5 UnUU:waGM�gg!["a [R
S5 UnGN
f=f!["a/n[R
SUR$-5 UnSnAGNBSnAff=f!URR'5 f=f![0a Un[RS!5 GMSf=f!["a/n[R
SUR$-5 Un"SnAGN~SnAff=f![Fa [R
S15 Un"G
M4f=f![Fa [R
S15 Un"G
M]f=f!["a! Un"URRa5 GMof=f![Fa [R
S15 Un"GM�f=f![Fa [R
S15 Un" GMUf=f!["a" Un"URRa5  GM�f=f!["a" Un"URRa5  GM�f=f!["a" Un"URRa5  GM�f=f!["a" Un"URRa5  GMf=f!["a! Un"URRa5 GM�f=f![�a GN�f=f![�a [RSZ5 GN�f=f)[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=%szLEDM 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 %sr[zLast 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.�hplip_g3zInvalid file header. Bad magic.z>Magic=%s Ver=%d Pages=%d hDPI=%d vDPI=%d Size=%d Res=%d Enc=%d�faxz/FaxPCSend/Jobr/r0r1r
z2HTTP ERROR CODE: 531, Server Temporary UnavailablezCreate Job request faileds/Jobs/JobList/sContent-Lengths
Cache-Control�
r'�
zjobListURI = [z] type=r.z%s State: DownloadPageszTotal Number of pages are:%dz%Page=%d PPR=%d RPP=%d BPP=%d Thumb=%dz#Pixels per line (width) must be %d!zNo data!z!j:job-faxpcsendstatus-resourceurizpageConfigURI:[%s]z.Page config data is not accepted by the devicez%setting state to FAX_SEND_STATE_ERRORzapplication/octet-streamz.Sending Page Image XML Data [%s] to the devicez'Sending Raw Data to printer............z(Image Data is not accepted by the devicez%s State: CancelJobzJob Cancel Request Failedz%s State: Close sessionzClosing session...z%s State: CleanupzRemoving merged file: %s�Removedz	Not found)S�next_recipient_gen�STATUS_ERROR�rendered_file_list�check_for_cancelr4rMrZ�write_queue�STATUS_IDLE�STATUS_COMPLETED�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�createJobXML�format_http_postr3r5�openLEDMr6rr8r:r9�get_error_code�HTTP_CREATED�HTTP_SERVICE_UNAVALIABLE�	MAX_TRIES�find�strip�replace�type�str�decode�range�PAGE_HEADER_SIZE�decode_page_header�PIXELS_PER_LINE�write�seekrS�
pageConfigXML�
HTTP_ACCEPTED�
checkForError�STATUS_ERROR_IN_TRANSMITTING�STATUS_ERROR_IN_CONNECTING�STATUS_ERROR_PROBLEM_IN_FAXLINE�STATUS_JOB_CANCEL�truncate�cancelJobXML�format_http_putr=�	NameError�remove_temp_file�os�remove�OSError)Fr�
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�error_state�	num_tries�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�	reserved2�faxnum�	createJobrErF�pos�pos1�pos2�
jobListURI�page�p�page_num�ppr�rpp�
bytes_to_read�thumbnail_bytes�	thumbnail�
pageConfigURI�
pageConfig�xmldata�pageImageURI�Status�	Fax_StatesF                                                                      r%�run�LEDMFaxSendThread.run�s����
��
��
��
�!#������!�������������
����0�0�2��&��"��"$����	��z�!��$�$�&�&�%���I�I�(�5�0�1��
�%��	�	�,�-�� � �+�q�"�!5�6�%���-�'��	�	�*�%�� � �"2�A�r�!:�;�%���+�%��	�	�,�-�� � �+�q�"�!5�6�%���*�$��	�	�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� �M�*�$=�=��I�I�&G�H�-A�N��I�I�&f�',�g�{�H�h�Xa�'1�8�'=�'=�>�"+�5�!1��$0�F�K�3H�$H�	�#�4�4�5E�c�)�n�U^�_�����T�*����)�)�+����*�*�=��+>�?�#*�9��"�"&�(�(�"3�"3�C��1�"3�"M� $�#'�(�(�"3�"3�C��1�"3�"M�"M����*�*�,�#+�#4�#4�#6�����X�.��.�.�x�8�L�H�-I�N�!�0�0��:�>V�V�[d�hq�[q�-D�N�%��N�I�(�9�4� #�	�	�*^� _�-A�N��I�I�&A�B�!�&�m�m�,=�a��H�
�N��'�}�}�->�q��X��O��'�}�}�-=�a��H�
�N��%-�c�$�%7�%=�%=�%?�
�%/�%7�%7��c�%B�%J�%J�5�QT�%U�
�%��,�)1�#�d�);�)A�)A�)C�J�)3�);�);�E�#�)F�)N�)N�u�UX�)Y�J��I�I�J�PT�U_�P`�&a�b��
�+�s�2�*4�*;�*;�G�*D�Z��'�+G�G��	�	�";�v�"F�G�&�y���	�	�"@�+�"M�N�!&�{�!3�A�#�4�4�6�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�� %�,0�H�H�,I�,I�*�Ux�,y�M��I�I�&:�M�&I�J�)6��(�8�8T�)T�J�&*�&;�&;�M�#�j�/�Zd�&e�G��L�L��1� �H�H�-�-�/�&� $��� 2� 2�7� ;�(/�y�H�&�&*�h�h�&7�&7��X�q�&7�&Q�$(�'+�h�h�&7�&7��X�q�&7�&Q�&Q�!�H�H�.�.�0�(0�(9�(9�(;�H��L�L��2�#�2�2�8�<�
�M�1E�� #�	�	�*Z� [� %�+/�8�8�+H�+H��Tw�+x�L�"&�#'�#8�#8�#:�#:�5I�N�$)�48�4F�4F�z�4R� 1��	�#)�-A�#A�y�Tp�Gp�$-�1K�$K�y�\{�O{�$-�1B�$B�$'�I�I�.U�$V�5I�N�2;�K�$)�%+�/E�%E�$)�#'�  .�1E�E��\p�Ip� %�'+�&;�&;�L��T��SU�Vp�&q�G��I�I�&V�X_�&_�`� �H�H�-�-�/� �H�H�.�.�w�7��I�I�&O�P�&� $��� 2� 2�4� 8�(/�y�H�&�&*�h�h�&7�&7��X�r�&7�&R�$(�'+�h�h�&7�&7��X�r�&7�&R�&R�!�H�H�.�.�0�'/�'8�'8�':�H��L�L��2�#�2�2�8�<�
�M� #�	�	�*T� U�1E�� %� �M�M�!�,� �I�I�a�L�y"4�~.C�N�(�+@�@�)?��(�+C�C��	�	�"7�6�"B�C�".��"<��#�3�3�J�s�7�|�G�T�����T�*����)�)�+����*�*�=��+>�?�#*�9��"�"&�(�(�"3�"3�C��2�"3�"N� $�#'�(�(�"3�"3�C��2�"3�"N�"N����*�*�,�#+�#4�#4�#6�����X�.��.�.�x�8�G�C�-I�N�-A�N��I�I�&A�B�(�+G�G��	�	�";�v�"F�G��	�	�"6�7�!��H�H�J����*�*�,������(�)<��[	%�(;�;��`	�-�'��	�	�-��8�9��(�(��I�I�8�4�6�6�A�B�/��	�	�$�&�&�)��	�	�)�,�#��Q
�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�$�%��8 %�"�-A�N� �H�H�.�.�0�!�"��Z$+�)� #�	�	�*D� E�1E�� (�)��($+�&� #�	�	�*D� E�1E�� %�&��($)�&�1E�� $��� 2� 2� 4� %�&��$)�&�1E�� $��� 2� 2� 4� %�&��R$)�&�1E�� $��� 2� 2� 4� %�&��$)�&�1E�� $��� 2� 2� 4� %�&��N %�"�-A�N� �H�H�.�.�0�!�"��* )�!� �!��&#�/��	�	�+�.�/�s��0A@�A:+�$AAA.�AB�AC�3AC<�5AAD%�7AE�*AE<�'AF&�
AAG�+AH�AAH3�AAI"�AJ�)5AJ!�+!A@�@AA�@A@�@AA�@
AA�@$AA�AAA�AAA�AAA�AAA+�A.!AB�BAB�B
AC�B!$AC�CAC�C!AC9�C8AC9�C<!AD"�D!AD"�D%&AE�EAE�E!AE9�E8AE9�E<!AF#�F"AF#�F&&AG�GAG�G&AH�HAH�H&AH0�H/AH0�H3&AI�IAI�I"&AJ
�JAJ
�J
AJ�JAJ�J!AK�KAKc���U(d[$[RU5nUc[$[	URS55nU$![[4a
 [nU$f=f)Nr
)rBr;r<r=r>r?r@rA)r�retr<rGs    r%r�� LEDMFaxSendThread.get_error_code�sa���:�%��%�%�c�*���=��.�	��u�{�{�1�~�&�D�����I�&�	��D���	�s�A	�	A#�"A#c���[5nURRU5nU(d[R	S5 g[
R"5RU5n[RSU<SU<35 SnSnUn[n[USS5S	:Xa[US
S5S	:XaUn[nXx4$[USS5S	:Xa[US
S
5S	:XaUn[nXx4$[US
S5S	:Xa[USS5S	:XaUn[nXx4$[US
S5S	:Xa[USS5S	:XaUn[nXx4$[USS5S	:XaUnUnXx4$)Nz'Unable To read the XML data from devicer{zRead Attribute:z and it is value:r�r�z(j:job-faxpcsendstatus-faxtxmachinestatus�Transmittingrz&j:job-faxpcsendstatus-faxtxerrorstatus�CommunicationError�
Connecting�NoAnswer�PcDisconnectz&j:job-faxpcsendstatus-pagestatus-stater��Stop)rr��FetchLEDMUrlr4rZr	�XMLToDictParser�parseXMLrMr��cmpr�r�r�r�)	r�uri�streamrE�xmlDictr�r�r��Fax_send_states	         r%r��LEDMFaxSendThread.checkForError�s�������x�x�$�$�S�)����I�I�?�@���'�'�)�2�2�4�8���	�	�3�t�D�E�!��!#��$��%���w�A�B�>�R�TU�U��G�D�E�FZ�[�^_�_�(�E�9�N� �#�#���C�D�\�
R�TU�
U��G�D�E�j�Q�TU�U�(�E�7�N��#�#���A�B�>�
R�TU�
U��G�D�E�g�N�QR�R�(�E�<�N��#�#���A�B�6�
J�A�
M��G�D�E�g�N�QR�R�(�E�.�N��#�#���C�D�^�
T�WX�
X�*�E�3�N��#�#r'c�F�URn[R"S5$)Nz�POST $requst HTTP/1.1
Host: $host
User-Agent: hplip/2.0
Content-Type: $content_type
Content-Length: $ledmlen
Connection: Keep-alive
SOAPAction: ""

$xmldata�rr	�cat�r�requst�ledmlenr#�content_typers      r%r��"LEDMFaxSendThread.format_http_post�s!���~�~���y�y��	
�		
r'c�F�URn[R"S5$)Nz{PUT $requst HTTP/1.1
Host: $host
User-Agent: hplip/2.0
Content-Type: $content_type
Content-Length: $ledmlen

$xmldatar=r?s      r%r��!LEDMFaxSendThread.format_http_put�s!���~�~���	�	��
�	
r')rr�r�r�rz)ztext/xml; charset=utf-8)r|r}r~rrr'r�r�r�r�r�r)r'r%rcrc�s)��UZ�AE�.�A#�H	�"$�H
�	
r'rc)-�
__future__r�sysr�rs�base.sixextrrr�re�	threading�struct�xml.parsers.expat�parsers�expat�stat�base.g�
base.codes�baserr	r
rrr��compile�Ir;r=r�r�rBr�r�r�rurLrWr�r�r�rrr�rcr)r'r%�<module>rUs���, ��	��:�:�	��
��!�!����3�3�%��
�*�*�1�2�4�4�8��

���
���
�
���
�	���f��f
��i
��b��k	�
�f��i�I�i�ZY
�
�Y
r'

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 129 B 0644
cdmfax.cpython-313.pyc File 18.5 KB 0644
coverpages.cpython-313.pyc File 15.87 KB 0644
fax.cpython-313.pyc File 37.91 KB 0644
faxdevice.cpython-313.pyc File 1.89 KB 0644
ledmfax.cpython-313.pyc File 31.04 KB 0644
ledmsoapfax.cpython-313.pyc File 4.72 KB 0644
marvellfax.cpython-313.pyc File 35.83 KB 0644
pmlfax.cpython-313.pyc File 39.42 KB 0644
soapfax.cpython-313.pyc File 28.43 KB 0644
Filemanager