• File: list_versions.pyo
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pyo
  • Date Modified: 03/28/2024 3:28 PM
  • File size: 3.65 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

fc@snddlmZddljjZddlmZddlmZddlZdZ	defdYZ
dS(i(tPluginN(t_(tget_productss&Spenser Shumaker <sshumake@redhat.com>tListVersionscBsbeZdZedZedZedZedZdZ	dZ
dZRS(tlistversionssDisplay all versionscCs
tdS(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!
        s
%prog PRODUCT(R(tcls((sM/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pyt	get_usages	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
        s3Use the '%s' command to list versions of a product.(Rtplugin_name(R((sM/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pytget_desc*s		cCstd|jS(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
        s&Example:
- %s Red Hat Enterprise Linux(RR(R((sM/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pyt
get_epilog6s	cCstd|j}|jstjrpttd}t|j}|dkrdtn||_q|GHt|nt	j
d|jrdj|jdd!j|_ndS(NsERROR: %s requires a product.s-Please provide the product (or 'q' to exit): tqs^[\'"].*[\'"]$t ii(
RRt_linetcommontis_interactivet	raw_inputtstrtstript	Exceptiontretsearchtjointsplit(tselftmsgtline((sM/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pyt_check_productDs	
	cCs|jdS(N(R(R((sM/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pyt
validate_argsXscCstd}t}|rt}xU|D]M}|jj|jjkr(t}x|jD]}|GHqbWPq(q(W|s|GHt|qn|GHt|dS(Ns ERROR: Invalid product provided.(	RRtFalsetget_nametlowerRtTruetget_versionsR(RRtprodArytinArraytproducttversion((sM/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pytnon_interactive_action[s	
!	(t__name__t
__module__RRtALLtclassmethodRRR	RRR%(((sM/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pyRs		(tredhat_support_tool.pluginsRt"redhat_support_tool.helpers.commonthelpersR
t(redhat_support_tool.helpers.confighelperRRRt
__author__R(((sM/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/list_versions.pyt<module>s