equal
deleted
inserted
replaced
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): |