| Home | Trees | Index | Help |
|
|---|
| Package lemon :: Package auth |
|
PHP-style authorisation functions.
Version:
File Version 0.1 for LEMON 0.2
Usage:
session = lemon.session.SessionDB(cursor, appName) # Retrieve the session or create a new one
auth = lemon.auth.AuthDB(session) # Create auth object from the session information
if auth.isValid(): # See if the User is logged on else present login form.
user = a.getUser() # Return a user object containing user's details.
user.Password # Access the data via attributes or dict style.
user.getStatus() # Retrieve the entry for the appName column.
ToDO:
addUser, RemoveUser etc.
gadfly
create the database if not already there??
definately need config file similar to php.ini
Sort out the ridiculous template situation with emailing etc.
| Submodules | |
|---|---|
| Classes | |
|---|---|
Auth |
|
| Exceptions | |
|---|---|
AuthError |
Error Class for the Session Module. |
| Function Summary | |
|---|---|
The preffered method to start the auth classes. | |
| Variable Summary | |
|---|---|
str |
__author__ = 'James Gardner [email: james at xecos.com]'...
|
str |
__credits__ = 'Guido van Rossum, for an excellent progra...
|
str |
__date__ = '02 July 2003'
|
str |
__version__ = '0.2'
|
| Function Details |
|---|
start(session, storage='db', database=None, expire=1440, idle=600, loginForm=None, autoLogin=True, autoRedirect=True, redirect=None, includeQuery=False, stickyData={}, reminderForm=None, email=None, app=None, accessDenied=None, emailMessage=None, htmlPage=None)The preffered method to start the auth classes. |
| Variable Details |
|---|
__author__
|
__credits__
|
__date__
|
__version__
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Mon Nov 10 15:08:02 2003 | http://epydoc.sf.net |