%PDF- %PDF-
Mini Shell

Mini Shell

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

�

HfR���ddlZddlZddlZddlZejej
ej��Gd�d�Zy)�N)�domain�	localedirc�f�eZdZdZdZdZededediZdd�Zd	�Zd
�Z	d�Z
d�Zd
�Zd�Z
d�Zd�Zd�Zy)�StateReason���zdialog-informationzdialog-warningzdialog-errorNc��||_||_d|_d|_d|_|r|j||j�yy�N)�printer�reason�level�canonical_reason�_ppd�	fetch_ppd�_got_ppd)�selfrr
�ppdcaches    �//usr/share/system-config-printer/statereason.py�__init__zStateReason.__init__'sB����������
� $�����	���������7��c��||_yr)r)r�name�result�excs    rrzStateReason._got_ppd0s	����	rc��|jSr)r�rs r�get_printerzStateReason.get_printer3s���|�|�rc�h�|j�|jS|jjd�s|jdvr|j|_|jS|jjd�r|j|_|jS|j
|_|jS)Nz-report)�connecting-to-devicezcups-ipp-missing-cancel-jobz#cups-ipp-missing-get-job-attributesz'cups-ipp-missing-get-printer-attributeszcups-ipp-missing-job-historyzcups-ipp-missing-job-idzcups-ipp-missing-job-statez%cups-ipp-missing-operations-supportedzcups-ipp-missing-print-jobz*cups-ipp-missing-printer-is-accepting-jobsz&cups-ipp-missing-printer-state-reasonszcups-ipp-missing-send-documentzcups-ipp-missing-validate-jobzcups-ipp-wrong-http-version�-warning)rr
�endswith�REPORT�WARNING�ERRORrs r�	get_levelzStateReason.get_level6s����:�:�!��:�:���K�K� � �)�,��K�K�
;�

;����D�J��z�z���[�[�
!�
!�:�
.����D�J��z�z�����D�J��z�z�rc�&�|jr|jS|j�}|j}||jk(r|j	d�r|dd}n%||j
k(r|j	d�r|dd}||_|jS)Nr!i����z-errori����)rr&r
r$r"r%)rrr
s   r�
get_reasonzStateReason.get_reasonQs���� � ��(�(�(����!�������D�L�L� �V�_�_�j�%A��C�R�[�F�
�d�j�j�
 �V�_�_�h�%?��C�R�[�F� &����$�$�$rc���|j�|j|jk(rd}n|j|jk(rd}nd}d|�d|j	��d|j��d�S)Nr#r$r%z<statereason.StateReason (�,z)>)r&rr#r$rr()rrs  r�__repr__zStateReason.__repr__^sa�������:�:����$��E�
�Z�Z�4�<�<�
'��E��E��9>�9=�9I�9I�9L�9=���9K�M�	Mrc��td�td�ftd�td�ftd�td�ftd�td�ftd	�td
�ftd�td�ftd
�td�ftd�td�ftd�td�ftd�td�ftd�td�ftd�td�fd�}	||j�\}}	||j�z}||fS#t$rY�wxYw#t$�r|j�|jk(rtd�}nQ|j�|jk(rtd�}n(|j�|jk(rtd�}|j�}|jrY	gd�}d}|D]3}|jj|j|�}|��,||zdz}�5|dk7r|dd}n#t$rYnwxYwtd �|j�|fz}Y|fSwxYw)!Nz	Toner lowzPrinter '%s' is low on toner.zToner emptyzPrinter '%s' has no toner left.z
Cover openz"The cover is open on printer '%s'.z	Door openz!The door is open on printer '%s'.z	Paper lowzPrinter '%s' is low on paper.zOut of paperzPrinter '%s' is out of paper.zInk lowzPrinter '%s' is low on ink.z	Ink emptyzPrinter '%s' has no ink left.zPrinter off-linez#Printer '%s' is currently off-line.zNot connected?z"Printer '%s' may not be connected.z
Printer errorz#There is a problem on printer '%s'.zPrinter configuration errorz1There is a missing print filter for printer '%s'.)z	toner-lowztoner-emptyz
cover-openz	door-openz	media-lowzmedia-emptyzmarker-supply-lowzmarker-supply-empty�offliner �otherzcups-missing-filterzPrinter reportzPrinter warning)�text�http�help�file�z, ���zPrinter '%s': '%s'.)
�_r(r�	TypeError�KeyErrorr&r#r$r%r�localizeIPPReasonr
�RuntimeError)	r�messages�titler/r
�schemes�localized_reason�scheme�lreasons	         r�get_descriptionzStateReason.get_descriptionks����K�.��;�<�>��m�,��?�@�B��\�?��A�B�D��K�.��?�@�B��K�.��;�<�>��n�-��=�>�@�"#�I�,�"#�$A�"B�"D�$%�k�N�$%�&E�$F�$H��,�-��?�@�B�%&�'7�%8�%&�'K�%L�%N���(��=�>�@�%&�&C�$D�$%�'6�%7�$8�1��8	N�$�T�_�_�%7�8�M�U�D�
��d�.�.�1�1��8�t�}���7�
��
���	N��~�~� �D�K�K�/��*�+�����"�d�l�l�2��+�,�����"�d�j�j�0��/�*���_�_�'�F��y�y��>�G�')�$�")�Q��"&�)�)�"=�"=�d�k�k�>D�#F��"�.�/?�'�/I�D�/P�,�	Q�
(�2�-�!1�#�2�!6���#������+�,��0@�0@�0C�V�/L�L�D��t�}��1	N�s[�D>�D/�/	D;�8D>�:D;�;D>�>B I�3H(�H(�'I�(	H4�1I�3H4�4!I�Ic�`�|j�|j�|j�fSr)r&rr(rs r�	get_tuplezStateReason.get_tuple�s&�����!�4�#3�#3�#6����8J�K�Krc�t�t|�t|�k7ry|j�|j�k(S�NF��typer&�rr.s  r�__eq__zStateReason.__eq__�s.��	
�u���t��	$��
�^�^�
�%�/�/�"4�
4�4rc�t�t|�t|�k7ry|j�|j�kSrDrErGs  r�__lt__zStateReason.__lt__�s.��	
�u���t��	$��
�^�^�
����!3�
3�3rr)�__name__�
__module__�__qualname__r#r$r%�
LEVEL_ICONrrrr&r(r+r@rBrHrJ�rrrrs`���F�
�G�
�E�	�$��!�
�~�
�J�8����6%�M�<�|L�5�
4rr)�cups�os�config�gettext�install�PACKAGErrrOrr�<module>rVs9��,�	�
������v�~�~��1A�1A�B�X4�X4r

Zerion Mini Shell 1.0