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

Class for login form. More...

Public Member Functions

def __init__
 If request is passed in, the form will validate that cookies are enabled.
def clean
 Validates the password.
def get_user
 Returns cached user object instance.

Public Attributes

 request
 user_cache

Static Public Attributes

tuple password
tuple username

Detailed Description

Class for login form.

Definition at line 46 of file user.py.

Constructor & Destructor Documentation

def src.wi.forms.user.AuthenticationForm.__init__ (   self,
  request = None,
  args,
  kwargs 
)

If request is passed in, the form will validate that cookies are enabled.

Note
Note that the request (a HttpRequest object) must have set a cookie with the key TEST_COOKIE_NAME and value TEST_COOKIE_VALUE before running this validation.

Definition at line 66 of file user.py.

Member Function Documentation

def src.wi.forms.user.AuthenticationForm.clean (   self)

Validates the password.

Definition at line 75 of file user.py.

def src.wi.forms.user.AuthenticationForm.get_user (   self)

Returns cached user object instance.

Definition at line 101 of file user.py.

Member Data Documentation

tuple src.wi.forms.user.AuthenticationForm.password
static
Initial value:
forms.RegexField(regex=regexp['password'],
max_length=255,
label=_('Password'),
widget=forms.PasswordInput(attrs={'tabindex': '2', 'class': 'required'}),
error_messages={'invalid': regexp_text['password']})

Definition at line 50 of file user.py.

src.wi.forms.user.AuthenticationForm.request

Definition at line 67 of file user.py.

src.wi.forms.user.AuthenticationForm.user_cache

Definition at line 68 of file user.py.

tuple src.wi.forms.user.AuthenticationForm.username
static
Initial value:
forms.CharField(max_length=63,
label=_('Username'),
widget=forms.TextInput(attrs={'tabindex': '1', 'class': 'required'}))

Definition at line 47 of file user.py.


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