Changeset 79

Show
Ignore:
Timestamp:
06/05/07 18:33:57
Author:
bbangert
Message:

Added option to avoid duplicate creation of HTTP exception handler.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • AuthKit/branches/0.4/authkit/authenticate/__init__.py

    r77 r79  
    289289 
    290290def middleware(app, app_conf=None, global_conf=None, prefix='authkit.',  
    291                **options):    
     291               handle_httpexception=True, **options):    
    292292    """ 
    293293    This function sets up the AuthKit authenticate middleware and its use and options 
     
    331331    variable in the source code. 
    332332    """ 
    333     app = HTTPExceptionHandler(app) 
     333    if handle_httpexception: 
     334        app = HTTPExceptionHandler(app) 
    334335     
    335336    # Configure the config files