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)
Initialise the resource with an 'authenticator'.
  respond(self, trans)
Respond using the transaction 'trans'.
  _decode(self, url)
Decode the given 'url' for redirection purposes.
  _redirect(self, trans, redirect)
Redirect the client using 'trans' and the given 'redirect' URL.
  _show_login(self, trans, redirect)
Writes a login screen using the transaction 'trans', including details of the 'redirect' URL which the client was attempting to access.
  _show_success(self, trans, redirect)

Method Details

__init__(self, authenticator, use_redirect=1)
(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.

respond(self, trans)

Respond using the transaction 'trans'.

_decode(self, url)

Decode the given 'url' for redirection purposes.

_redirect(self, trans, redirect)

Redirect the client using 'trans' and the given 'redirect' URL.

_show_login(self, trans, redirect)

Writes a login screen using the transaction 'trans', including details of the 'redirect' URL which the client was attempting to access.

Generated by Epydoc 2.1 on Fri Jul 22 23:16:52 2005 http://epydoc.sf.net