server/session.py
changeset 9411 6aec72169ee1
parent 9396 e83cbc116352
child 9478 2d7521881d3d
child 9484 31f070752462
equal deleted inserted replaced
9410:ce072c9aa573 9411:6aec72169ee1
  1435         super(InternalSession, self).__init__(InternalManager(), repo, cnxprops,
  1435         super(InternalSession, self).__init__(InternalManager(), repo, cnxprops,
  1436                                               _id='internal')
  1436                                               _id='internal')
  1437         self.user._cw = self # XXX remove when "vreg = user._cw.vreg" hack in entity.py is gone
  1437         self.user._cw = self # XXX remove when "vreg = user._cw.vreg" hack in entity.py is gone
  1438         if not safe:
  1438         if not safe:
  1439             self.disable_hook_categories('integrity')
  1439             self.disable_hook_categories('integrity')
  1440             self._tx.ctx_count += 1
  1440         self.disable_hook_categories('security')
       
  1441         self._tx.ctx_count += 1
  1441 
  1442 
  1442     def __enter__(self):
  1443     def __enter__(self):
  1443         return self
  1444         return self
  1444 
  1445 
  1445     def __exit__(self, exctype, excvalue, tb):
  1446     def __exit__(self, exctype, excvalue, tb):