equal
deleted
inserted
replaced
298 # Calling the hooks should be done only once, disabling it completely for |
298 # Calling the hooks should be done only once, disabling it completely for |
299 # now |
299 # now |
300 # with session.new_cnx() as cnx: |
300 # with session.new_cnx() as cnx: |
301 # repo.hm.call_hooks('session_open', cnx) |
301 # repo.hm.call_hooks('session_open', cnx) |
302 # cnx.commit() |
302 # cnx.commit() |
303 # repo._sessions[session.sessionid] = session |
|
304 return session |
303 return session |
305 |
304 |
306 |
305 |
307 def _cw_session(request): |
306 def _cw_session(request): |
308 """Obtains a cw session from a pyramid request |
307 """Obtains a cw session from a pyramid request |