Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
share
/
rhsm
/
subscription_manager
/
Upload File :
New :
File
Dir
//usr/share/rhsm/subscription_manager/reasons.pyc
mò x^Sc�����������@���s,���d��k��Z��e��i��Z�d�e�f�d�„��ƒ��YZ�d��S(���Nt���Reasonsc�����������B���sV���t��Z�d��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z �d�„��Z �RS( ���s;��� Holds reasons and parses them for the client. c���������C���s���|�|��_��|�|��_�d��S(���N(���t���reasonst���selft���sorter(���R���R���R���(����(����t/���/usr/share/rhsm/subscription_manager/reasons.pyt���__init__���s���� c���������C���s���|��i�ƒ��i�|�g��ƒ�S(���sV��� returns reasons for sub_id, or empty list if there are none. N(���R���t���get_subscription_reasons_mapt���gett���sub_id(���R���R���(����(����R���t���get_subscription_reasons���s�����c���������C���sþ���h��}�x%�|��i�i�D]�}�g��|�|�i�d�<q�WxÉ�|��i�D]¾�}�d�|�d�j�oB�|�d�|�|�d�d�j�o!�|�|�d�d�i�|�d�ƒ�qö�q8�d�|�d�j�oT�xQ�|��i �|�d�d�ƒ�D]4�}�|�d�|�|�j�o�|�|�i�|�d�ƒ�qº�qº�Wq8�q8�W|�S(���sZ��� returns a dictionary that maps subscriptions to lists of reasons t���CNt���entitlement_idt ���attributest���messaget���stack_idN( ���t���resultR���R���t���valid_entitlement_certst���st���subjectR���t���reasont���appendt���get_stack_subscriptions(���R���R���R���R���(����(����R���R���$���s ����� � �%�%c���������C���s‡���h��}�xz�|��i�D]o�}�|�d�d�|�j�o�g��|�|�d�d�<n�|�d�|�|�d�d�j�o!�|�|�d�d�i�|�d�ƒ�q�q�W|�S(���NR���t���nameR ���(���R���R���R���R���R���(���R���R���R���(����(����R���t���get_name_message_map7���s���� �%c���������C���se���t��g��ƒ�}�xL�|��i�i�D]>�}�|�i�i�o+�|�i�i�|�j�o�|�i �|�i �d�ƒ�q�q�Wt�|�ƒ�S(���NR ���(���t���setR���R���R���R���R���t���ordert���stacking_idR���t���addR���t���list(���R���R���R���R���(����(����R���R���@���s���� � c���������C���s���d�|�d�j�o�t�d�ƒ�|�d�d�Sna�d�|�d�j�o�t�d�ƒ�|�d�d�Sn6�d�|�d�j�o�t�d�ƒ�|�d�d�Sn�t�d�ƒ�Sd��S( ���Nt ���product_idR���s���Product R���s ���Subscription R���s���Stack t���Unknown(���R���t���_(���R���R���(����(����R���t ���get_reason_idG���s����c���������C���s€��|�i�|��i�i�j�o�g��Sn�t�g��ƒ�}�|��i�|�ƒ�}�g��}�g��}�xZ�|�D]R�}�d�|�i�j�o�|�i �|�i�d�ƒ�n�|�i�i�o�|�i �|�i�i�ƒ�qL�qL�WxÑ�|��i�D]Æ�}�d�|�d�j�o1�|�d�d�|�i�j�o�|�i�|�d�ƒ�qrq¬�d�|�d�j�o.�|�d�d�|�j�o�|�i�|�d�ƒ�qrq¬�d�|�d�j�o.�|�d�d�|�j�o�|�i�|�d�ƒ�qrq¬�q¬�Wt�|�ƒ�S(���s_��� Returns a list of reason messages that apply to the installed product R ���R���R���R ���R���R���N(���t���prodt���idR���R���t���valid_productsR���R���t���get_product_subscriptionst ���subscriptionst���sub_idst ���stack_idsR���R���R���R���R���R���R���R���R���(���R���R!���R%���R���R���R���R'���R&���(����(����R���t���get_product_reasonsU���s2������ �c���������C���s?���g��}�|��i�i�D]!�}�|�|�i�j�o�|�|�q�q�~�}�|�S(���sS��� Returns a list of subscriptions that provide the product. N(���t���_[1]R���R���R���t ���valid_entR!���t���productst���results(���R���R!���R)���R,���R*���(����(����R���R$���w���s�����;(���t���__name__t ���__module__t���__doc__R���R ���R���R���R���R ���R(���R$���(����(����(����R���R�������s���� "(���t���gettextR���t���objectR����(���R����R���R0���(����(����R���t���?���s���