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

Changeset 1625

Show
Ignore:
Timestamp:
03/04/07 06:06:52
Author:
lawouach
Message:

Fixed #663

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cpdispatch.py

    r1605 r1625  
    242242        self.mapper.controller_scan = self.controllers.keys 
    243243         
    244         # Since Routes' mapper.environ is not threadsafe, 
    245         # we must use a proxy which does JIT lookup. 
    246         self.mapper.environ = WSGIEnvProxy() 
    247      
    248244    def connect(self, name, route, controller, **kwargs): 
    249245        self.controllers[name] = controller 
     
    269265        config = routes.request_config() 
    270266        config.mapper = self.mapper 
     267        # Since Routes' mapper.environ is not threadsafe, 
     268        # we must use a proxy which does JIT lookup. 
     269        config.mapper.environ = WSGIEnvProxy() 
    271270        config.host = request.headers.get('Host', None) 
    272271        config.protocol = request.scheme 
     
    274273         
    275274        result = self.mapper.match(path_info) 
     275         
    276276        config.mapper_dict = result 
    277277        params = {} 

Hosted by WebFaction

Log in as guest/cpguest to create tickets