equal
deleted
inserted
replaced
50 |
50 |
51 |
51 |
52 @contextmanager |
52 @contextmanager |
53 def anonymized_request(req): |
53 def anonymized_request(req): |
54 orig_cnx = req.cnx |
54 orig_cnx = req.cnx |
55 anon_clt_cnx = anonymous_cnx(orig_cnx._session.repo) |
55 anon_cnx = anonymous_cnx(orig_cnx.session.repo) |
56 req.set_cnx(anon_clt_cnx) |
56 req.set_cnx(anon_cnx) |
57 try: |
57 try: |
58 with anon_clt_cnx: |
58 with anon_cnx: |
59 yield req |
59 yield req |
60 finally: |
60 finally: |
61 req.set_cnx(orig_cnx) |
61 req.set_cnx(orig_cnx) |
62 |
62 |
63 class AbstractSessionManager(component.Component): |
63 class AbstractSessionManager(component.Component): |