Changeset 429

Show
Ignore:
Timestamp:
02/03/06 11:19:44 (3 years ago)
Author:
brad
Message:

DbAuthPlugin:

Changed db layer to match 0.9.x, and forgot to remove some comments earlier

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dbauthplugin/0.9/dbauth/auth.py

    r428 r429  
    2828 
    2929class DbAuthLoginModule(Component): 
    30     """Implements user authentication based on HTTP authentication provided by 
    31     the web-server, combined with cookies for communicating the login 
    32     information across the whole site. 
    33  
    34     This mechanism expects that the web-server is setup so that a request to the 
    35     path '/login' requires authentication (such as Basic or Digest). The login 
    36     name is then stored in the database and associated with a unique key that 
    37     gets passed back to the user agent using the 'trac_auth' cookie. This cookie 
    38     is used to identify the user in subsequent requests to non-protected 
    39     resources. 
     30    """Implements user authentication based on database tables and an HTML form, 
     31    combined with cookies for communicating the login information across the whole site. 
    4032    """ 
    4133 
  • dbauthplugin/0.9/dbauth/env.py

    r428 r429  
    1515# Author: Brad Anderson <brad@dsource.org> 
    1616 
    17 from trac.db.sqlite_backend import * 
     17# for 0.10 and higher 
     18#from trac.db.sqlite_backend import * 
     19 
     20# for 0.9.x branch 
     21from trac.db import * 
    1822 
    1923def get_db(env): 
     
    2832    envname = env.path.replace(envroot, "") 
    2933    return envname 
     34 
     35