Home | Trees | Index | Help |
|
---|
Package lemon :: Package session :: Package manager |
|
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
Submodules | |
---|---|
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(storage, database=None, table='Session')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:05 2003 | http://epydoc.sf.net |