Changeset 3834

Show
Ignore:
Timestamp:
12/17/07 19:27:07 (1 year ago)
Author:
alberto
Message:

Fixed httpexceptions middleware stacking order in middleware.py (patch by Iain Duncan) and removed obsolete README-tests.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/templates/turbogears/+package+/config/middleware.py_tmpl

    r3832 r3834  
    5454 
    5555    if asbool(full_stack): 
     56        # Stack httpexceptions middleware so redirect, abort, etc.. work 
     57        # XXX: Why doesn't Pylons stack this internally anymore?? 
     58        app = httpexceptions.make_middleware(app) 
     59 
    5660        # Handle Python exceptions 
    5761        app = ErrorHandler(app, global_conf, error_template=error_template, 
     
    6165        # 500 when debug is disabled) 
    6266        app = ErrorDocuments(app, global_conf, mapper=error_mapper, **app_conf) 
    63  
    64     # Stack httpexceptions middleware so redirect, abort, etc.. work 
    65     # XXX: Why doesn't Pylons stack this internally? 
    66     app = httpexceptions.make_middleware(app) 
    6767 
    6868    # Establish the Registry for this application