8.2.10.4.11.7. ExtendedConfirmRegisterForm

class ExtendedConfirmRegisterForm(*args, **kwargs)[source]

Methods

__contains__

Returns True if the named field is a member of this form.

__delattr__

Implement delattr(self, name).

__delitem__

Remove a field from this form.

__dir__

Default dir() implementation.

__eq__

Return self==value.

__format__

Default object formatter.

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__getitem__

Dict-style access to this form's fields.

__getstate__

Helper for pickle.

__gt__

Return self>value.

__hash__

Return hash(self).

__init__

__init_subclass__

This method is called when a class is subclassed.

__iter__

Iterate form fields in creation order.

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Return self!=value.

__new__

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__setitem__

Bind a field to this form.

__sizeof__

Size of object in memory, in bytes.

__str__

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

hidden_tag

Render the form's hidden fields in one call.

is_submitted

Consider the form submitted if there is an active request and the method is POST, PUT, PATCH, or DELETE.

populate_obj

Populates the attributes of the passed obj with data from the form's fields.

process

Process default and input data with each field.

to_dict

Return form data as dictionary :param only_user: bool, if True then only fields that have corresponding members in UserModel are returned :return: dict

validate

Validate the form by calling validate on each field.

validate_on_submit

Call validate() only if the form is submitted.

__init__(*args, **kwargs)
Parameters:
  • formdata – Input data coming from the client, usually request.form or equivalent. Should provide a “multi dict” interface to get a list of values for a given key, such as what Werkzeug, Django, and WebOb provide.

  • obj – Take existing data from attributes on this object matching form field attributes. Only used if formdata is not passed.

  • prefix – If provided, all fields will have their name prefixed with the value. This is for distinguishing multiple forms on a single page. This only affects the HTML name for matching input data, not the Python name for matching existing data.

  • data – Take existing data from keys in this dict matching form field attributes. obj takes precedence if it also has a matching attribute. Only used if formdata is not passed.

  • meta – A dict of attributes to override on this form’s meta instance.

  • extra_filters – A dict mapping field attribute names to lists of extra filter functions to run. Extra filters run after filters passed when creating the field. If the form has filter_<fieldname>, it is the last extra filter.

  • kwargs – Merged with data to allow passing existing data as parameters. Overwrites any duplicate keys in data. Only used if formdata is not passed.

Attributes

__annotations__

__dict__

__doc__

__module__

__weakref__

list of weak references to the object

_unbound_fields

_wtforms_meta

avatar

custom_data

data

email

errors

firstname

lastname

password

submit

username

__annotations__ = {'username': 't.ClassVar[Field]'}
__doc__ = None
__module__ = 'schedula.utils.form.server.security'
_unbound_fields = None
_wtforms_meta = None
username: t.ClassVar[Field]