server/session.py
changeset 9478 2d7521881d3d
parent 9469 032825bbacab
parent 9411 6aec72169ee1
child 9479 f13fbab0c718
equal deleted inserted replaced
9475:7863c546b135 9478:2d7521881d3d
  1745         super(InternalSession, self).__init__(InternalManager(), repo, cnxprops,
  1745         super(InternalSession, self).__init__(InternalManager(), repo, cnxprops,
  1746                                               _id='internal')
  1746                                               _id='internal')
  1747         self.user._cw = self # XXX remove when "vreg = user._cw.vreg" hack in entity.py is gone
  1747         self.user._cw = self # XXX remove when "vreg = user._cw.vreg" hack in entity.py is gone
  1748         if not safe:
  1748         if not safe:
  1749             self.disable_hook_categories('integrity')
  1749             self.disable_hook_categories('integrity')
  1750             self._cnx.ctx_count += 1
  1750         self.disable_hook_categories('security')
       
  1751         self._cnx.ctx_count += 1
  1751 
  1752 
  1752     def __enter__(self):
  1753     def __enter__(self):
  1753         return self
  1754         return self
  1754 
  1755 
  1755     def __exit__(self, exctype, excvalue, tb):
  1756     def __exit__(self, exctype, excvalue, tb):