web/application.py
changeset 10355 60b8204fcca3
parent 10354 635cfac73d28
child 10369 0c678b63d017
--- a/web/application.py	Tue Jun 10 16:01:49 2014 +0200
+++ b/web/application.py	Fri Jun 13 15:42:04 2014 +0200
@@ -52,10 +52,10 @@
 @contextmanager
 def anonymized_request(req):
     orig_cnx = req.cnx
-    anon_clt_cnx = anonymous_cnx(orig_cnx._session.repo)
-    req.set_cnx(anon_clt_cnx)
+    anon_cnx = anonymous_cnx(orig_cnx.session.repo)
+    req.set_cnx(anon_cnx)
     try:
-        with anon_clt_cnx:
+        with anon_cnx:
             yield req
     finally:
         req.set_cnx(orig_cnx)