Changeset 1625
- Timestamp:
- 03/04/07 06:06:52
- Files:
-
- trunk/cherrypy/_cpdispatch.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cpdispatch.py
r1605 r1625 242 242 self.mapper.controller_scan = self.controllers.keys 243 243 244 # Since Routes' mapper.environ is not threadsafe,245 # we must use a proxy which does JIT lookup.246 self.mapper.environ = WSGIEnvProxy()247 248 244 def connect(self, name, route, controller, **kwargs): 249 245 self.controllers[name] = controller … … 269 265 config = routes.request_config() 270 266 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() 271 270 config.host = request.headers.get('Host', None) 272 271 config.protocol = request.scheme … … 274 273 275 274 result = self.mapper.match(path_info) 275 276 276 config.mapper_dict = result 277 277 params = {}

