Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
share
/
rhsm
/
subscription_manager
/
Upload File :
New :
File
Dir
//usr/share/rhsm/subscription_manager/entbranding.pyc
mò x^Sc�����������@���sº���d��k��Z��e��i�d�e�ƒ�Z�d�e�f�d�„��ƒ��YZ�d�e�f�d�„��ƒ��YZ�d�e�f�d�„��ƒ��YZ�d�e�f�d �„��ƒ��YZ�d �e�f�d�„��ƒ��YZ �d�e�f�d �„��ƒ��YZ �d�e�f�d�„��ƒ��YZ�d��S(���Ns ���rhsm-app.t���BrandsInstallerc�����������B���s&���t��Z�d��d�„�Z�d�„��Z�d�„��Z�RS(���Nc���������C���s���|�|��_��|��i�ƒ��|��_�d��S(���N(���t ���ent_certst���selft���_get_brand_installerst���brand_installers(���R���R���(����(����t3���/usr/share/rhsm/subscription_manager/entbranding.pyt���__init__���s���� c���������C���s���g��S(���s/���returns a list or iterable of BrandInstaller(s)N(����(���R���(����(����R���R��� ���s�����c���������C���s"���x�|��i�D]�}�|�i�ƒ��q �Wd��S(���N(���R���R���t���brand_installert���install(���R���R���(����(����R���R���$���s���� �(���t���__name__t ���__module__t���NoneR���R���R���(����(����(����R���R�������s��� t���BrandInstallerc�����������B���s>���t��Z�d��Z�e�d�„�Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�RS(���s7���Install branding info for a set of entititlement certs.c���������C���sC���|�|��_��t�i�d�g��}�|�p�g��D]�}�|�|�i�q$�~�ƒ�d��S(���Ns���BrandInstaller ent_certs: %s(���R���R���t���logt���debugt���_[1]t���xt���serial(���R���R���R���R���(����(����R���R���,���s���� c���������C���s���|��i�ƒ��}�|�i�ƒ��}�|�p�d�Sn�|��i�ƒ��}�t�i�d�|�i �ƒ�t�i�d�|�i �ƒ�|�i �|�ƒ�o�|��i�|�ƒ�n�t�i�d�ƒ�d�S(���s-���Create a Brand object if needed, and save it.Ns%���Current branded name info, if any: %ss+���Fresh ent cert has branded product info: %ss1���Product branding info does not need to be updated( ���R���t���_get_brand_pickert���brand_pickert ���get_brandt ���new_brandt���_get_current_brandt ���current_brandR ���R���t���namet���is_outdated_byt���_installt���info(���R���R���R���R���(����(����R���R���1���s�����c���������C���s ���t��‚�d��S(���N(���t���NotImplementedError(���R���(����(����R���R���E���s����c���������C���s ���t��‚�d��S(���N(���R���(���R���(����(����R���R���H���s����c���������C���s ���t��‚�d��S(���N(���R���(���R���t���brand(����(����R���R���K���s����( ���R ���R ���t���__doc__R���R���R���R���R���R���(����(����(����R���R���)���s���� t���BrandPickerc�����������B���s#���t��Z�d��Z�e�d�„�Z�d�„��Z�RS(���s¤���Returns the branded name to install. Check installed product certs, and the list of entitlement certs passed in, and find the correct branded name, if any.c���������C���s ���|�|��_��d��S(���N(���R���R���(���R���R���(����(����R���R���U���s����c���������C���s ���t��‚�d��S(���N(���R���(���R���(����(����R���R���X���s����(���R ���R ���R���R���R���R���(����(����(����R���R���O���s����t���Brandc�����������B���s���t��Z�d��Z�e�Z�d�„��Z�RS(���s���Base class for Brand objects.c���������C���s4���|��i�p�t�Sn�|�i�p�t�Sn�|�i�|��i�j�S(���s-���If a Brand should be replaced with new_brand.N(���R���R���t���TrueR���t���False(���R���R���(����(����R���R���d���s����� (���R ���R ���R���R���R���R���(����(����(����R���R ���\���s����t���ProductBrandc�����������B���sG���t��Z�d��Z�d�„��Z�d�„��Z�d�„��Z�e�d�„��ƒ�Z�e�d�„��ƒ�Z �RS(���s���A brand for a branded productc���������C���s���|��i�ƒ��|��_�|�|��_�d��S(���N(���R���t���_get_brand_filet ���brand_fileR���(���R���R���(����(����R���R���t���s����c���������C���s���t��ƒ��S(���N(���t ���BrandFile(���R���(����(����R���R$���x���s����c���������C���s&���|��i�|��i�ƒ�}�|��i�i�|�ƒ�d��S(���N(���R���t���format_brandR���R���R%���t���write(���R���R���(����(����R���t���save{���s����c���������C���s ���|��|�i�ƒ�S(���N(���t���clst���productt ���brand_name(���R*���R+���(����(����R���t���from_product���s����c���������C���s"���|��i�d�ƒ�p�|��d�7}��n�|��S(���Ns��� (���R���t���endswith(���R���(����(����R���R'���ƒ���s����( ���R ���R ���R���R���R$���R)���t���classmethodR-���t���staticmethodR'���(����(����(����R���R#���r���s���� t���CurrentBrandc�����������B���s8���t��Z�d��Z�d�„��Z�d�„��Z�d�„��Z�e�d�„��ƒ�Z�RS(���s���The currently installed brandc���������C���s���|��i�ƒ��|��_�|��i�ƒ��d��S(���N(���R���R$���R%���t���load(���R���(����(����R���R������s����c���������C���s���t��ƒ��S(���N(���R&���(���R���(����(����R���R$���‘���s����c���������C���sW���y�|��i�i�ƒ��}�Wn+�t�j �o�t�i�d�|��i�ƒ�d��Sn�X|��i�|�ƒ�|��_�d��S(���Ns���No brand info file found (%s) ( ���R���R%���t���readt ���brand_infot���IOErrorR ���R���t���unformat_brandR���(���R���R4���(����(����R���R2���”���s���� c���������C���s���|��o�|��i�ƒ��Sn�d��S(���N(���R���t���stripR���(���R���(����(����R���R6������s����(���R ���R ���R���R���R$���R2���R0���R6���(����(����(����R���R1���‹���s ���� R&���c�����������B���s/���t��Z�d��Z�d�Z�d�„��Z�d�„��Z�d�„��Z�RS(���sa���The file used for storing product branding info. Default is "/var/lib/rhsm/branded_name s���/var/lib/rhsm/branded_namec���������C���s5���t��|��i�d�ƒ�}�z�|�i�|�ƒ�Wd��|�i�ƒ��Xd��S(���Nt���w(���t���openR���t���pathR%���R(���R4���t���close(���R���R4���R%���(����(����R���R(���¬���s �����c���������C���s:���d��}�t�|��i�d�ƒ�}�z�|�i�ƒ��}�Wd��|�i�ƒ��X|�S(���Nt���r(���R���R4���R9���R���R:���R%���R3���R;���(���R���R4���R%���(����(����R���R3���³���s�����c���������C���s���d�|��i�S(���Ns���<BrandFile path=%s>(���R���R:���(���R���(����(����R���t���__str__¼���s����(���R ���R ���R���R:���R(���R3���R=���(����(����(����R���R&���¤���s ���� (���t���loggingt ���getLoggerR ���R ���t���objectR����R���R���R ���R#���R1���R&���( ���R���R>���R ���R ���R&���R#���R���R����R1���(����(����R���t���?���s��� &