Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #641: routes_handler_config.patch

  • cherrypy/_cpdispatch.py

    old new  
    300300            action = result.get('action', None) 
    301301            if action is not None: 
    302302                handler = getattr(controller, action) 
     303                # Get config from the handler 
     304                if hasattr(handler, "_cp_config"): 
     305                    merge(handler._cp_config) 
    303306         
    304307        # Do the last path atom here so it can 
    305308        # override the controller's _cp_config. 

Hosted by WebFaction

Log in as guest/cpguest to create tickets