| Home | Trees | Index | Help |
|
|---|
| Package lemon :: Package auth :: Package drivers :: Module base |
|
PHP-style authorisation functions.
Version:
File Version 0.1 for LEMON 0.2
Usage:
session = lemon.session.SessionDB(self.database, 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
| Classes | |
|---|---|
Base |
Base class from which to derive other Auth managers. |
| 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'
|
| Variable Details |
|---|
__author__
|
__credits__
|
__date__
|
__version__
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Mon Nov 10 15:08:08 2003 | http://epydoc.sf.net |