##// END OF EJS Templates
base: add pyramid_request to tmplContext
ergo -
r765:f8f4537e default
parent child Browse files
Show More
@@ -28,6 +28,7 b' import logging'
28 28 import socket
29 29
30 30 import ipaddress
31 import pyramid.threadlocal
31 32
32 33 from paste.auth.basic import AuthBasicAuthenticator
33 34 from paste.httpexceptions import HTTPUnauthorized, HTTPForbidden, get_exception
@@ -368,6 +369,8 b' def attach_context_attributes(context, r'
368 369 context.unread_notifications = NotificationModel().get_unread_cnt_for_user(
369 370 context.rhodecode_user.user_id)
370 371
372 context.pyramid_request = pyramid.threadlocal.get_current_request()
373
371 374
372 375 def get_auth_user(environ):
373 376 ip_addr = get_ip_addr(environ)
General Comments 0
You need to be logged in to leave comments. Login now