This commit sponsored by David Collins. Thank you!
exc.get_description(environ))(environ, start_response)
controller = endpoint_to_controller(found_rule)
- # Make a reference to the controller on the request...
+ # Make a reference to the controller's symbolic name on the request...
# used for lazy context modification
- request.controller = controller
+ request.controller_name = found_rule.endpoint
# pass the request through our meddleware classes
try:
# allow plugins to do things to the context
context = hook_transform(
- (request.controller, template_path),
+ (request.controller_name, template_path),
context)
rendered = template.render(context)