o
    [h                     @   s   d dl Z ddlmZ ddlmZmZmZ dZG dd deZG d	d
 d
eZ	G dd deZ
G dd deZG dd deZG dd deZG dd deZdS )    N   )widgets   )FieldStringFieldBooleanField)r   TextAreaFieldPasswordField	FileFieldMultipleFileFieldHiddenFieldSubmitField	TextFieldc                       s    e Zd ZdZ fddZ  ZS )r   z?
    Legacy alias for StringField

    .. deprecated:: 2.0
    c                    s*   t t| j|i | tjdtdd d S )NzZThe TextField alias for StringField has been deprecated and will be removed in WTForms 3.0r   )
stacklevel)superr   __init__warningswarnDeprecationWarning)selfargskw	__class__ |/home/ubuntu/experiments/live_experiments/Pythonexperiments/Otree/venv/lib/python3.10/site-packages/wtforms/fields/simple.pyr      s
   
zTextField.__init__)__name__
__module____qualname____doc__r   __classcell__r   r   r   r   r      s    r   c                   @      e Zd ZdZe ZdS )r   zd
    This field represents an HTML ``<textarea>`` and can be used to take
    multi-line input.
    N)r   r   r   r   r   ZTextAreawidgetr   r   r   r   r          r   c                   @   r!   )r	   z
    A StringField, except renders an ``<input type="password">``.

    Also, whatever value is accepted by this field is not rendered back
    to the browser like normal fields.
    N)r   r   r   r   r   ZPasswordInputr"   r   r   r   r   r	   #   s    r	   c                   @   s    e Zd ZdZe Zdd ZdS )r
   a-  Renders a file upload field.

    By default, the value will be the filename sent in the form data.
    WTForms **does not** deal with frameworks' file handling capabilities.
    A WTForms extension for a framework may replace the filename value
    with an object representing the uploaded data.
    c                 C   s   dS )NFr   )r   r   r   r   _value8   s   zFileField._valueN)r   r   r   r   r   	FileInputr"   r$   r   r   r   r   r
   -   s    r
   c                   @   s$   e Zd ZdZejddZdd ZdS )r   z9A :class:`FileField` that allows choosing multiple files.T)Zmultiplec                 C   s
   || _ d S )N)data)r   Z	valuelistr   r   r   process_formdataB   s   
z"MultipleFileField.process_formdataN)r   r   r   r   r   r%   r"   r'   r   r   r   r   r   =   s    r   c                   @   r!   )r   z
    HiddenField is a convenience for a StringField with a HiddenInput widget.

    It will render as an ``<input type="hidden">`` but otherwise coerce to a string.
    N)r   r   r   r   r   ZHiddenInputr"   r   r   r   r   r   F   s    r   c                   @   r!   )r   zw
    Represents an ``<input type="submit">``.  This allows checking if a given
    submit button has been pressed.
    N)r   r   r   r   r   ZSubmitInputr"   r   r   r   r   r   O   r#   r   )r    r   corer   r   r   __all__r   r   r	   r
   r   r   r   r   r   r   r   <module>   s    
		