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 :  /usr/lib/python2.7/site-packages/redhat_support_tool/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pyo
�
��Tc@s�ddlmZddlmZddlmZddlmZmZddl	Z	dZ
e	jd�Zdeefd	��YZ
dS(
i����(tdeque(t_(tLaunchHelper(t
HiddenCommandtInteractivePluginNs!Nigel Jones <nigjones@redhat.com>s)redhat_support_tool.helpers.genericpromptt
GenericPromptcBsSeZdZdZed�ZdZdZd�Z	d�Z
d�Zdd�ZRS(s�A generic interactive prompt that can be called by plugins.

    In some cases it may be wise from a UI perspective to trigger a second,
    interactive prompt outside of the current plugin.

    Usage:
        ObjectDisplayOptions should be used when interacting with this helper,
        the object component used in the ObjectDisplayOption passed to
        LaunchHelper when launching this plugin should be a dict with the
        following data:
            'lhplugin':  class of the plugin to pass prompt options to
            'type':  string of type of data displayed (i.e. Recommendations,
                     Varieties, Instruments, ...)
            'options':  a deque() of ObjectDisplayOptions for use in the plugin
                        prompts

        The object item in the ObjectDisplayOptions for the options, is a dict
        with the following data:
            'pt_str':  string passed to LaunchHelper class (i.e. a knowledge
                       base article ID) - blank string allowed
            'pt_obj':  an object to be passed in an ObjectDisplayOption to the
                       called LaunchHelper class.
                       If not used, should be set to None
    t
genericpromptsGeneric promptcCs|jS(N(t
_submenu_opts(tself((sX/usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pytget_sub_menu_options;scCs
||_dS(s�
        Allow insertion of a package object by launchhelper (when selecting
        from the list generated by list_kerneldebugs.py)
        N(tmetadata(RR
((sX/usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pyt
insert_obj>scCsV|jdj�}td�dd|f|_td�||_|jd|_dS(Nttypes,%s of %s %s displayed. Type 'm' to see more.s%ssNo more %s to displaytoptions(R
tlowerRtpartial_entriestend_of_entriesR(Rt
prompttype((sX/usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pytpostinitEs	
cCspy_|j}t|jd�}|drM|d|_|j|d|�n|j|d�Wn
�nXdS(Ntlhplugintpt_objtpt_str(t
stored_objRR
trun(Rtdisplay_optiont
dopt_metadatatlh((sX/usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pytinteractive_actionMs	

N(
t__name__t
__module__t__doc__tplugin_nameRtALLtNoneRR
R	RRR(((sX/usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pyRs			(tcollectionsRt(redhat_support_tool.helpers.confighelperRt(redhat_support_tool.helpers.launchhelperRtredhat_support_tool.pluginsRRtloggingt
__author__t	getLoggertloggerR(((sX/usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pyt<module>s

https://t.me/AnonymousX5 - 2025