Show
Ignore:
Timestamp:
03/27/08 16:59:44 (8 months ago)
Author:
JensDiemer
Message:

add a experimental new cache middleware
-merge pagestats into cache middleware
-add unitest for the cache
-move setup_debug() from the views into the common middleware
-update other tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/middlewares/common.py

    r1507 r1510  
    3131from PyLucid.system.exceptions import LowLevelError 
    3232from PyLucid.system.template import render_help_page 
     33from PyLucid.system.utils import setup_debug 
    3334 
    3435 
     
    5859    """ 
    5960    def process_request(self, request): 
     61        # add the attribute "debug" to the request object. 
     62        setup_debug(request) 
     63 
    6064        try: 
    6165            session_middleware.process_request(request) 
     
    6468        except Exception, e: 
    6569            raise_non_table_error(e) 
    66  
    6770 
    6871    def process_view(self, request, view_func, view_args, view_kwargs):