diff -r 635cfac73d28 -r 60b8204fcca3 web/application.py --- 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)