setup_storage)
from mediagoblin.tools.pluginapi import PluginManager, hook_transform
from mediagoblin.tools.crypto import setup_crypto
+from mediagoblin import notifications
_log = logging.getLogger(__name__)
request.urlgen = build_proxy
+ request.notifications = notifications
+
mg_request.setup_user_in_request(request)
+ request.controller_name = None
try:
found_rule, url_values = map_adapter.match(return_rule=True)
request.matchdict = url_values
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: