Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
redhat_support_tool
/
helpers
/
File Content:
genericinteractiveprompt.pyo
� ��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>