|
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 : |
�
��Tc @ s� d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l Z d Z
e j d � Z d e e f d � � YZ
d S(
i����( t deque( t _( t LaunchHelper( t
HiddenCommandt InteractivePluginNs! Nigel Jones <nigjones@redhat.com>s) redhat_support_tool.helpers.genericpromptt
GenericPromptc B sS e Z d Z d Z e d � Z d Z d Z d � Z d � Z
d � Z d d � 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
genericprompts Generic promptc C s | j S( N( t
_submenu_opts( t self( ( sX /usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pyt get_sub_menu_options; s c C s
| | _ d S( s�
Allow insertion of a package object by launchhelper (when selecting
from the list generated by list_kerneldebugs.py)
N( t metadata( R R
( ( sX /usr/lib/python2.7/site-packages/redhat_support_tool/helpers/genericinteractiveprompt.pyt
insert_obj>