Package lemon :: Package auth :: Class Auth
[show private | hide private]
[frames | no frames]

Class Auth


Method Summary
  __init__(self, session, driver, expire, idle, loginForm, autoLogin, autoRedirect, redirect, includeQuery, stickyData, reminderForm, email, app, accessDenied, emailMessage, htmlPage)
Parameters:...
  errorToDescription(self, error, ignore)
  errorToString(self, error, ignore)
  getLoginForm(self, problem, username, stickyData)
Displays a form allowing the user to login.
  getReminderForm(self, stickyData, problem)
Displays a form allowing the user to login.
  getStatus(self)
  getUser(self)
  isValid(self)
Checks to see if their is a valid entry for the session.
  login(self, username, password)
Retrieves the information for the User...
  logout(self)
Checks to see if their is a valid entry for the session # Deletes the session FOR THIS APP ONLY.
  printPage(self, content, title)
  _buildURL(self, includeQuery)

Method Details

__init__(self, session, driver, expire, idle, loginForm, autoLogin, autoRedirect=True, redirect=None, includeQuery=False, stickyData={}, reminderForm=None, email=None, app=None, accessDenied=None, emailMessage=None, htmlPage=None)
(Constructor)

Parameters:
    session     - Session from lemon.session.start()
    driver      - Driver class
    expire      - Maximum length of time the user is allowed to be logged in for
    idle        - Maximum length of time between user requests
    loginForm   - Function to display get the HTML for the login form
    autoLogin   - Whether or not to automatically login the user
    redirect    - Where to go when logged in
    email = {
        'system':config.get('general','systemName'),
        'sender':config.get('admin','sender'),
        'reply':config.get('admin','reply'),
        'sendmail':config.get('admin','sendmail'),
        'smtp':config.get('admin','smtp'),
        'method':config.get('admin','method'),
    }

getLoginForm(self, problem=None, username='', stickyData={})

Displays a form allowing the user to login.

getReminderForm(self, stickyData={}, problem='')

Displays a form allowing the user to login.

isValid(self)

Checks to see if their is a valid entry for the session.

login(self, username, password)

Retrieves the information for the User

logout(self)

Checks to see if their is a valid entry for the session
# Deletes the session FOR THIS APP ONLY.

Generated by Epydoc 2.0 on Mon Nov 10 15:08:10 2003 http://epydoc.sf.net