server/session.py
changeset 6077 62011f82c386
parent 6033 09db6f4619c9
parent 6071 c7a9e25153c2
child 6142 8bc6eac1fac1
equal deleted inserted replaced
6069:d7cef08aad27 6077:62011f82c386
  1023     running_dbapi_query = False
  1023     running_dbapi_query = False
  1024 
  1024 
  1025     def __init__(self, repo, cnxprops=None):
  1025     def __init__(self, repo, cnxprops=None):
  1026         super(InternalSession, self).__init__(InternalManager(), repo, cnxprops,
  1026         super(InternalSession, self).__init__(InternalManager(), repo, cnxprops,
  1027                                               _id='internal')
  1027                                               _id='internal')
  1028         self.user.req = self # XXX remove when "vreg = user.req.vreg" hack in entity.py is gone
  1028         self.user._cw = self # XXX remove when "vreg = user._cw.vreg" hack in entity.py is gone
  1029         self.cnxtype = 'inmemory'
  1029         self.cnxtype = 'inmemory'
  1030         self.disable_hook_categories('integrity')
  1030         self.disable_hook_categories('integrity')
  1031 
  1031 
  1032     @property
  1032     @property
  1033     def pool(self):
  1033     def pool(self):