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'.
  _redirect(self, trans, app, path, qs)
Redirect the client using 'trans' and the given 'app', 'path' and 'qs' details.
  _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'.

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

Redirect the client using 'trans' and the given 'app', 'path' and 'qs' details.

_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 Sat Nov 26 02:16:39 2005 http://epydoc.sf.net