cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
src.wi.forms.user.RegistrationForm Class Reference

Form for registering a new user account. More...

Inherits PasswordForm.

Public Member Functions

def __init__
def clean_email
 Validate that the supplied email address is unique for the site.
def clean_login
 Validate that the login is alphanumeric and is not already in use.

Static Public Attributes

tuple email
tuple first
tuple last
tuple login
tuple organization

Detailed Description

Form for registering a new user account.

Validates that the requested username is not already in use, and requires the password to be entered twice to catch typos.

Definition at line 163 of file user.py.

Constructor & Destructor Documentation

def src.wi.forms.user.RegistrationForm.__init__ (   self,
  args,
  kwargs 
)

Definition at line 181 of file user.py.

Member Function Documentation

def src.wi.forms.user.RegistrationForm.clean_email (   self)

Validate that the supplied email address is unique for the site.

Definition at line 205 of file user.py.

def src.wi.forms.user.RegistrationForm.clean_login (   self)

Validate that the login is alphanumeric and is not already in use.

Definition at line 193 of file user.py.

Member Data Documentation

tuple src.wi.forms.user.RegistrationForm.email
static
Initial value:
forms.EmailField(widget=forms.TextInput(attrs=dict(attrs_dict, maxlength=255)),
label=_('Email address'))

Definition at line 178 of file user.py.

tuple src.wi.forms.user.RegistrationForm.first
static
Initial value:
forms.CharField(max_length=63,
widget=forms.TextInput(attrs=attrs_dict),
label=_('First name'))

Definition at line 169 of file user.py.

tuple src.wi.forms.user.RegistrationForm.last
static
Initial value:
forms.CharField(max_length=63,
widget=forms.TextInput(attrs=attrs_dict),
label=_('Last name'))

Definition at line 172 of file user.py.

tuple src.wi.forms.user.RegistrationForm.login
static
Initial value:
forms.RegexField(regex=regexp['login'],
max_length=63,
widget=forms.TextInput(attrs=attrs_dict),
label=_('Username'),
error_messages={'invalid': regexp_text['login']})

Definition at line 164 of file user.py.

tuple src.wi.forms.user.RegistrationForm.organization
static
Initial value:
forms.CharField(max_length=63,
widget=forms.TextInput(attrs=attrs_dict),
label=_('Organization'))

Definition at line 175 of file user.py.


The documentation for this class was generated from the following file: