Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
share
/
rhsm
/
subscription_manager
/
Upload File :
New :
File
Dir
//proc/self/root/usr/share/rhsm/subscription_manager/reasons.pyo
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]>