Package WebStack :: Package Resources :: Module Login :: Class LoginResource
[show private | hide private]
[frames | no frames]

Class LoginResource


A resource providing a login screen.

Method Summary
  __init__(self, authenticator, use_redirect, urlencoding)
Initialise the resource with an 'authenticator'.
  respond(self, trans)
Respond using the transaction 'trans'.
  show_login(self, trans, app, path, qs)
Writes a login screen using the transaction 'trans', including details of the 'app', 'path' and 'qs' which the client was attempting to access.
  show_success(self, trans, app, path, qs)

Class Variable Summary
str encoding = 'utf-8'

Method Details

__init__(self, authenticator, use_redirect=1, urlencoding=None)
(Constructor)

Initialise the resource with an 'authenticator'.

If the optional 'use_redirect' flag is set to 0, a confirmation screen
is given instead of redirecting the user back to the original
application.

The optional 'urlencoding' parameter allows a special encoding to be
used in producing the redirection path.

respond(self, trans)

Respond using the transaction 'trans'.

show_login(self, trans, app, path, qs)

Writes a login screen using the transaction 'trans', including details of the
'app', 'path' and 'qs' which the client was attempting to access.

Class Variable Details

encoding

Type:
str
Value:
'utf-8'                                                                

Generated by Epydoc 2.1 on Wed Jan 10 23:28:13 2007 http://epydoc.sf.net