cubicweb/pyramid/core.py
changeset 12028 08c866d2f11d
parent 11967 83739be20fab
child 12036 4c2c731f9190
equal deleted inserted replaced
12027:c62c80f20a82 12028:08c866d2f11d
   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