§ ½@¾jñ ã ó® — d dl Z d dlZd dlmZ d dlmZ d dlmZ d dl m Z d dlmZ d dl mZ dd lmZ G d „ de¦ « ZdZd „ Zd„ Zd„ Zd„ Zd„ Zd„ ZdS )é N)ÚFormattedException)Úcheck_quota_enabled)ÚFeature)Úis_panel_feature_supported)ÚUIConfig)Úexec_utilityé )Úboolean_to_0_1c ó — e Zd ZdS )ÚUIConfigExceptionN)Ú__name__Ú __module__Ú__qualname__© ó úpy/clconfig/ui_config_lib.pyr r s € € € € € Ø€Dr r z+/usr/share/l.v.e-manager/utils/dynamicui.pyc ó\ — t t ¦ « ¦ « ¦ « S )a6 Retrives UI settings from config file :return: dict. For example: {'inodeLimits': {'showUserInodesUsage': False}, 'uiSettings': {'hideRubyApp': False, 'hideLVEUserStat': False, 'hidePythonApp': False, 'hidePHPextensions': True} } )Úfilter_flagsr Ú get_configr r r Ú get_ui_configr s" € õ �™ œ ×-Ò-Ñ/Ô/Ñ0Ô0Ð0r c ó — t t dgd¬¦ « \ } }}n<# t $ r/}t dt |¦ « z dt idœ¦ « |‚d }~ww xY w| dk r"t d|z d z |z dt idœ¦ « ‚d S ) Nz--sync-conf=allT)Ústderrz Can't execute file %(ctl_cmd)s: Úctl_cmd)ÚmessageÚcontextr z#Error while executing %(ctl_cmd)s: ú )r ÚDYNAMIC_UI_CTL_CMDÚOSErrorr Ústr)ÚretcodeÚoutÚerrÚes r Ú refresh_panelr$ * sÞ € ðUÝ(Õ);Ð>OÐ=PÐY]Ð^Ñ^Ô^ш��c�cøÝð Uð Uð UÝÐ,NÕQTÐUVÑQWÔQWÑ,WØ-6Õ8JÐ,Kð!Mð !Mñ Nô NØSTð UøøøøðUøøøð �!‚|€|ÝÐ,QÐTWÑ,WÐZ]Ñ,]Ð`cÑ,cØ-6Õ8JÐ,Kð!Mð !Mñ Nô Nð Nð €|s ‚ Ÿ A©*AÁAc ó — t | d d ¦ « }dddœ}d|| z }t j |ddt j t j ¬ ¦ « n# t j t f$ r Y nw xY wt | ¦ « d S )a Sets UI settings to UI config file Using subfunction _set_ui_config :param parameters_dict: Parameters to set dictionary. For example: {'inodeLimits': {'showUserInodesUsage': False}, 'uiSettings': {'hideRubyApp': False, 'hideLVEUserStat': False, 'hidePythonApp': False, 'hidePHPextensions': True} } :return: None Ú uiSettingsÚ hidePythonAppÚdisabledÚenabled)Ú0Ú1zFcloudlinux-selector set --json --interpreter python --selector-status Tz /bin/bash)ÚshellÚ executableÚstdoutr N)r Ú subprocessÚ check_callÚDEVNULLÚSTDOUTÚCalledProcessErrorÚKeyErrorÚ_set_ui_config)Úparameters_dictÚenablepythonappÚ lve_to_selectÚ py_commands r Ú set_ui_configr: 5 s¶ € ð å(¨_¸\Ô-JÈ?Ô-[Ð)[Ñ\Ô\ˆà'¨iÐ8Ð8ˆ ð _ؘOÔ,ñ-ˆ åÔ˜j°ÀÝ%/Ô%7Å Ô@Qð Sñ Sô Sð Sð SøåÔ)8Ð4ð ð ð Øˆð øøøõ �?Ñ#Ô#Ð#Ð#Ð#s ‚AA ÁA5Á4A5c ód — t ¦ « | ¦ « t ¦ « dS )aW Sets UI settings to config file :param parameters_dict: Parameters to set dictionary. For example: {'inodeLimits': {'showUserInodesUsage': False}, 'uiSettings': {'hideRubyApp': False, 'hideLVEUserStat': False, 'hidePythonApp': False, 'hidePHPextensions': True} } :return: None N)r Ú set_configr$ )r6 s r r5 r5 S s) € õ �J„J×Ò˜/Ñ*Ô*Ð*å�O„O€O€O€Or c ó\ — t | d¦ « ¦ « t ¦ « �| d¦ « n# t $ r Y nw xY w t t j ¦ « s)| di ¦ « d¦ « n# t $ r Y nw xY w| S )Nr&