%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/system-config-printer/troubleshoot/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/system-config-printer/troubleshoot/__pycache__/CheckPrinterSanity.cpython-312.pyc

�

Hf_��h�ddlmZddlZddlZddlZddlZddlmZmZddl	Z
ddl�Gd�de�Z
y)�)�GtkN)�TimedOperation�TimedSubprocess�)�*c��eZdZd�Zd�Zd�Zy)�CheckPrinterSanityc��tj||d�|jtj�|�||_y)NzCheck printer sanity)�Question�__init__�new_pager�Label�troubleshooter)�selfrs  �C/usr/share/system-config-printer/troubleshoot/CheckPrinterSanity.pyrzCheckPrinterSanity.__init__!s3�����4��1G�H��������t�4�,���c
��i|_|jj}|dsy|d}|jj�}	tjd�ttj|��j�}t|j|��j�}||vr$d|jd<||}||jd<nHd|jd<t|j|��j�}||}||jd	<t|j|f|��j�}||jd
<d|jv�r~|jd}	|	d}
tjj|
�\}}||jd<|d
vrftjj|�\}
}tjj|
d��\}}||jd<||jd<�n�|dk(�rt!j"|
�}|j%�\}}}}}t&j(j+�}d|d<|rdd||g}nd|g}	t-|d||dt.j0t.j2t.j2��}|j�}||jd<|dD]S}|j5d�r�|j7d�}|dk7s�,||dj5d�r�A|d||jd<nn�|dk(r�t&j(j+�}d|d<d|d <	t-|d!d"d#|
zgd|t.j0t.j2t.j2�$�}|j�|jd%<|	d&tj:z}|dk7|jd'<y#Y���xYw#t8$rY�<wxYw#t8$rY�KwxYw)(N�cups_queue_listedF�
cups_queue�)�parent�
is_cups_class�cups_printer_dictT�cups_class_dict�local_cups_queue_attributesz
device-uri�cups_device_uri_scheme)�ipp�http�httpsiw)�defport�remote_server_name�remote_server_port�smb�C�LC_ALL�	nmblookupz-Wi�)r�timeout�args�env�	close_fds�stdin�stdout�stderr�nmblookup_outputr�querying� ���z failed �hp�DISPLAYi�zhp-infoz-d)rr'r(r*r)r+r,r-�hplip_outputzprinter-type�cups_printer_remote)�answersr�
get_window�cups�	setServerr�
Connection�run�getPrinters�
getClasses�getPrinterAttributes�urllib�parse�	splittype�	splithost�
splitnport�smburi�SMBURI�separate�os�environ�copyr�
subprocess�DEVNULL�PIPE�
startswith�find�OSError�CUPS_PRINTER_REMOTE)rr6�namer�c�printers�queue�classes�attrsr�uri�scheme�rest�hostport�host�port�u�group�share�user�password�new_environr(�p�result�line�spc�rs                            r�displayzCheckPrinterSanity.display&s�������%�%�-�-���*�+���|�$���$�$�/�/�2��	��N�N�B�������?�C�C�F�A�%�q�}�}�V�D�H�H�K�H��x��05����_�-� ����49����0�1�04����_�-�(�!�,�,�v�F�J�J�M����
��27����.�/�"�A�$:�$:�T�G�+1�3�36�3�6�
�:?�D�L�L�6�7��$�,�,�.� $���-@� A��#�L�1�C�#�\�\�3�3�S�9�N�V�T�5;�D�L�L�1�2��1�1�#)�<�<�#9�#9�4�#@� ��4�%�|�|�6�6��#�6�N���t�59����1�2�59����1�2��5���M�M�3�'��78�z�z�}�4���e�T�8� �j�j�o�o�/��(+��H�%��'��u�d�;�D�'��.�D��'��15�.2�-8�37�/9�/A�/A�0:���0:���A�A��U�U�X�F�7=�D�L�L�!3�4� &�q�	�"���?�?�J�7�$�"�i�i��o���2�I� $�S�T�
� 5� 5�z� B�AE�d�s��D�L�L�)=�>�!�"���4�� �j�j�o�o�/��(+��H�%�)+��I�&��'��15�/8�$��*�.E�37�-8�/9�/A�/A�0:���0:���A�A�45�5�5�8�D�L�L��0�
"�.�1�D�4L�4L�L�A�34��6�D�L�L�.�/���C	���R�����"����s?�D	O�-BO#�:O#�O#�AO2�O �#	O/�.O/�2	O>�=O>c��|jS)N)r6)rs r�collect_answerz!CheckPrinterSanity.collect_answer�s���|�|�rN)�__name__�
__module__�__qualname__rrhrj�rrr	r	 s��-�
`�Drr	)�
gi.repositoryrr8rGrDrJ�timedopsrr�urllib.parser?�baserr	rnrr�<module>rss-��.��	�
��4���i��ir

Zerion Mini Shell 1.0