# HG changeset patch # User Aurelien Campeas # Date 1426602089 -3600 # Node ID 6454ee8f213764a10975be046e7f52abaf4c96ba # Parent b050cf821ee590fd6c8d2b6d2760b91a975db2f6 [connection] remove a dead counter Related to #1381328. diff -r b050cf821ee5 -r 6454ee8f2137 cubicweb/server/session.py --- a/cubicweb/server/session.py Wed Jul 16 17:34:21 2014 +0200 +++ b/cubicweb/server/session.py Tue Mar 17 15:21:29 2015 +0100 @@ -116,10 +116,8 @@ self.changes = self.cnx.enable_hook_categories(*self.categories) else: self.changes = self.cnx.disable_hook_categories(*self.categories) - self.cnx.ctx_count += 1 def __exit__(self, exctype, exc, traceback): - self.cnx.ctx_count -= 1 try: if self.categories: if self.mode is HOOKS_DENY_ALL: @@ -158,10 +156,8 @@ else: self.oldwrite = self.cnx.write_security self.cnx.write_security = self.write - self.cnx.ctx_count += 1 def __exit__(self, exctype, exc, traceback): - self.cnx.ctx_count -= 1 if self.oldread is not None: self.cnx.read_security = self.oldread if self.oldwrite is not None: @@ -259,8 +255,6 @@ self.connectionid = '%s-%s' % (session.sessionid, uuid4().hex) self.session = session self.sessionid = session.sessionid - #: reentrance handling - self.ctx_count = 0 #: server.Repository object self.repo = session.repo