MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python2.7/site-packages/leapp/dialogs/components.pyc
�
g��fc@s�ddlmZdefd��YZdefd��YZdefd��YZdefd	��YZd
efd��YZdefd
��YZdefd��YZ	dS(i����(tunicode_typet	ComponentcBsbeZdZdZdZdZdZdZdZ	dZ
dddddd�Zd�Zd�Z
RS(s'
    Base class for all components
    cCs�|pt|�j|_|r6|jdd�j�nt|�j|_|pZt|�j|_|dk	rr|nt|�j|_t|�j|_|p�t|�j	|_	dS(sO

        :param key: Unique key within a dialog scope. Needs to be in the format: `[a-zA-Z_][a-zA-Z0-9_]*`
        :param label: Label for the input to print
        :param description: Description what this value is used for.
        :param default: Default value to
        :param reason: The reason why we need this value.
        s
t N(
ttypetkeytreplacetstriptlabeltdescriptiontNonetdefaulttvaluetreason(tselfRRRR
R((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyt__init__s	0$cCs
t��dS(N(tNotImplementedError(R
trenderertdialog((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pytdispatch scCs_i|jd6|jd6|jd6|jd6|jd6|jd6|jrWt|j�ndd6S(	s;
        :return: Serialized component information
        RRRR
RRt
value_typeN(	RRRR
RRRtstrR	(R
((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyt	serialize#s





N(t__name__t
__module__t__doc__R	RRRR
RRRRRR(((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyRs	t
TextComponentcBseZdZeZd�ZRS(s2
    TextComponent is a text input component.
    cCs|j|d|�dS(NR(trender_text_component(R
RR((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR8s(RRRRRR(((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR2stPasswordComponentcBs#eZdZdZeZd�ZRS(ss
    PasswordComponent is a text input component which will use non echoing input when possible (see getpass).
    tPasswordcCs|j|d|�dS(NR(trender_password_component(R
RR((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyRDs(RRRRRRR(((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR<stNumberComponentcBs#eZdZeZdZd�ZRS(s5
    NumberComponent is used for integer inputs.
    i����cCs|j|d|�dS(NR(trender_number_component(R
RR((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyROs(RRRtintRR
R(((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyRHstBooleanComponentcBsDeZdZdZdZeZd	d	d	d	d	d	d�Zd�Z	RS(
sO
    BooleanComponent is used for boolean inputs such as Yes/No questions.
    tTruetFalsetYestNocCsMtt|�jd|d|d|d|d|�|pCt|�j|_dS(s�
        :param key: Unique key within a dialog scope. Needs to be in the format: `[a-zA-Z_][a-zA-Z0-9_]*`
        :param label: Label for the input to print
        :param description: Description what this value is used for.
        :param default: Default value to
        :param reason: The reason why we need this value.
        :param values: Values to use as True and False, first is always True and the second is always False
                       (e.g. Yes/No)
        RRRR
RN(tsuperR!RRtvalues(R
RRRR
RR'((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR[s
*cCs|j|d|�dS(NR(trender_bool_component(R
RR((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyRis(sTruesFalse(R$R%N(
RRRtchoicesR'tboolRR	RR(((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR!SstChoiceComponentcBsDeZdZdZeZeZddddddd�Z	d�Z
RS(sj
    ChoiceComponent is used to give a list of options and allows to select one (like a radio button)
    cCsMtt|�jd|d|d|d|d|�|pCt|�j|_dS(s�
        :param key: Unique key within a dialog scope. Needs to be in the format: `[a-zA-Z_][a-zA-Z0-9_]*`
        :param label: Label for the input to print
        :param description: Description what this value is used for.
        :param default: Default value to
        :param reason: The reason why we need this value.
        :param choices: Choices that are available to the user
        RRRR
RN(R&R+RRR)(R
R)RRRR
R((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyRus	*cCs|j|d|�dS(NR(trender_choice_component(R
RR((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR�s(N(RRRR)R#tmultiRRR	RR(((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR+ms
tMultipleChoiceComponentcBs)eZdZdZeZeZd�ZRS(sx
    MultipleChoiceComponent is used to give a list of options and allows to select more than one (like checkboxes)
    cCs|j|d|�dS(s#
        Calls the appropriate rendering implementation on the renderer and passes itself and the dialog instance to it.

        :param renderer: Renderer instance
        :type renderer: :py:class:`leapp.dialogs.renderer.DialogRendererBase`
        :param dialog:
        :return:
        RN(t render_multiple_choice_component(R
RR((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR�s	((	RRRR)R"R-ttupleRR(((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyR.�s
N(
tleapp.compatRtobjectRRRRR!R+R.(((s</usr/lib/python2.7/site-packages/leapp/dialogs/components.pyt<module>s.