File: //lib/python2.7/site-packages/leapp/dialogs/dialog.pyc
�
g��fc @ s d e f d � � YZ d S( t Dialogc B s� e Z d Z d Z d
Z d
Z d
Z d
d
d
d � Z d � Z e
d � � Z e
d � � Z d � Z
d � Z d � Z d � Z RS( s�
The dialog class is used to declare the information passed to the user and retrieved from the user
during an interaction.
c C sj | p | j | _ | r0 | j d d � j � n | | _ | | _ | | _ | | _ d | _ d | _ d S( sl
:param scope: Unique scope identifier for the data to be stored in the answer files. Scope + component key
is used to address values.
:type scope: str
:param reason: An explanation for what the data in this dialog is needed for.
:type reason: str
:param title: Title of the dialog
:type title: str
:param components: Components to display in the given order in the dialog
:type components: tuple(leapp.dialogs.components.Component)
:param key: Key to appear in the dialog-related report entry
:type key: str
s
t N(
t
componentst replacet stript titlet scopet reasont keyt Nonet _storet _min_label_width( t selfR R R R R ( ( s8 /usr/lib/python2.7/site-packages/leapp/dialogs/dialog.pyt __init__ s ' c C sE i g | j D] } | j � ^ q
d 6| j d 6| j d 6| j d 6S( sW
:return: Dictionary with the serialized representation of a component
R R R R ( R t serializeR R R ( R t component( ( s8 /usr/lib/python2.7/site-packages/leapp/dialogs/dialog.pyR , s
#
c s � f d � � j D� S( Nc s7 i | ]- } t | d g � d j � j | j � � q S( t choicess {}.{}( t getattrt formatR R ( t .0t c( R ( s8 /usr/lib/python2.7/site-packages/leapp/dialogs/dialog.pys
<dictcomp>9 s ( R ( R ( ( R s8 /usr/lib/python2.7/site-packages/leapp/dialogs/dialog.pyt answerfile_sections7 s c C s/ | j s( t d � | j D� � | _ n | j S( s�
:return: Returns the highest number of characters all labels in the dialog have, to help calculating the minimum
width the labels should have.
c s s'