Module Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias TryExcept body ImportFrom alias handlers ExceptHandler body Assign NameStore NameLoad ClassDef bases body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Return NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad NameLoad NameLoad vararg kwarg body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign NameStore Dict Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad If BoolOpAnd Call NameLoad NameLoad Str AttributeLoad NameLoad attr body Return NameLoad If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd NameLoad CompareIn AttributeLoad NameLoad attr TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str If UnaryOpNot NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad Assign NameStore ListLoad Str For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Return Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A werkzeug.datastructures jinja2 Markup flask request session current_app wtforms.fields HiddenField wtforms.widgets HiddenInput wtforms.validators ValidationError wtforms.ext.csrf.form SecureForm _compat text_type string_types csrf generate_csrf validate_csrf N/A N/A i18n translations N/A N/A N/A N/A translations None _Auto N/A N/A N/A Placeholder for unspecified variables that should be set to defaults.

    Used when None is a valid option and should not be replaced by a default.
     N/A N/A _is_hidden N/A N/A field N/A N/A N/A Detect if the field is hidden. N/A N/A isinstance field HiddenField N/A N/A True N/A N/A isinstance N/A field widget HiddenInput N/A N/A True N/A False N/A Form N/A SecureForm N/A N/A 
    Flask-specific subclass of WTForms **SecureForm** class.

    If formdata is not specified, this will use flask.request.form.
    Explicitly pass formdata = None to prevent this.

    :param csrf_context: a session or dict-like object to use when making
                         CSRF tokens. Default: flask.session.

    :param secret_key: a secret key for building CSRF tokens. If this isn't
                       specified, the form will take the first of these
                       that is defined:

                       * SECRET_KEY attribute on this class
                       * WTF_CSRF_SECRET_KEY config of flask app
                       * SECRET_KEY config of flask app
                       * session secret key

    :param csrf_enabled: whether to use CSRF protection. If False, all
                         csrf behavior is suppressed.
                         Default: WTF_CSRF_ENABLED config value
     N/A SECRET_KEY None N/A TIME_LIMIT 3600 __init__ N/A N/A self formdata obj prefix csrf_context secret_key csrf_enabled N/A _Auto None None None None args kwargs N/A N/A N/A csrf_enabled None N/A N/A csrf_enabled N/A N/A N/A current_app config get WTF_CSRF_ENABLED True N/A N/A self csrf_enabled csrf_enabled N/A N/A formdata _Auto N/A N/A N/A N/A self is_submitted N/A N/A formdata N/A request form N/A N/A request files N/A N/A formdata N/A N/A formdata copy N/A N/A N/A formdata update N/A request files N/A N/A N/A request json N/A N/A formdata N/A N/A N/A werkzeug datastructures MultiDict N/A request json N/A N/A formdata None N/A N/A self csrf_enabled N/A N/A N/A csrf_context None N/A N/A csrf_context session N/A N/A secret_key None N/A N/A secret_key N/A getattr self SECRET_KEY None N/A N/A self SECRET_KEY secret_key N/A N/A csrf_context N/A N/A N/A self SECRET_KEY N/A N/A N/A N/A super Form self __init__ formdata obj prefix csrf_context csrf_context args kwargs N/A generate_csrf_token N/A N/A self csrf_context N/A None N/A N/A N/A N/A self csrf_enabled N/A N/A None N/A N/A generate_csrf N/A self SECRET_KEY N/A self TIME_LIMIT N/A validate_csrf_token N/A N/A self field N/A N/A N/A N/A N/A self csrf_enabled N/A N/A True N/A N/A N/A hasattr request csrf_valid N/A request csrf_valid N/A N/A True N/A N/A N/A validate_csrf N/A field data N/A self SECRET_KEY N/A self TIME_LIMIT N/A N/A N/A ValidationError N/A N/A field gettext CSRF token missing N/A validate_csrf_data N/A N/A self data N/A N/A N/A Check if the csrf data is valid.

        .. versionadded: 0.9.0

        :param data: the csrf string to be validated.
         N/A N/A validate_csrf data N/A self SECRET_KEY N/A self TIME_LIMIT N/A is_submitted N/A N/A self N/A N/A N/A 
        Checks if form has been submitted. The default case is if the HTTP
        method is **PUT** or **POST**.
         N/A N/A request N/A N/A request method N/A PUT POST N/A hidden_tag N/A N/A self N/A fields N/A N/A 
        Wraps hidden fields in a hidden DIV tag, in order to keep XHTML
        compliance.

        .. versionadded:: 0.3

        :param fields: list of hidden field names. If not provided will render
                       all hidden fields, including the CSRF field.
         N/A N/A fields N/A N/A fields N/A f N/A f self N/A _is_hidden f N/A rv N/A <div style="display:none;"> N/A field fields N/A N/A N/A isinstance field string_types N/A N/A field N/A getattr self field N/A N/A N/A rv append N/A text_type field N/A N/A N/A rv append </div> N/A N/A Markup N/A N/A join rv N/A validate_on_submit N/A N/A self N/A N/A N/A 
        Checks if form has been submitted and if so runs validate. This is
        a shortcut, equivalent to ``form.is_submitted() and form.validate()``
         N/A N/A N/A N/A self is_submitted N/A N/A self validate N/A _get_translations N/A N/A self N/A N/A N/A N/A N/A N/A N/A current_app config get WTF_I18N_ENABLED True N/A N/A None N/A translations N/A N/A