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