[session] drop .is_repo_in_memory
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 16 Jul 2014 17:34:21 +0200
changeset 11205 b050cf821ee5
parent 11204 71057a8bb19a
child 11206 6454ee8f2137
[session] drop .is_repo_in_memory This is deader than a dead dog's bone buried down a blind alley off a dead-end street in a ghost town. Related to #1381328.
cubicweb/server/session.py
cubicweb/web/views/debug.py
--- a/cubicweb/server/session.py	Wed Mar 16 11:39:24 2016 +0100
+++ b/cubicweb/server/session.py	Wed Jul 16 17:34:21 2014 +0200
@@ -251,7 +251,6 @@
     """
     is_request = False
     hooks_in_progress = False
-    is_repo_in_memory = True # bw compat
 
     def __init__(self, session):
         super(Connection, self).__init__(session.repo.vreg)
--- a/cubicweb/web/views/debug.py	Wed Mar 16 11:39:24 2016 +0100
+++ b/cubicweb/web/views/debug.py	Wed Jul 16 17:34:21 2014 +0200
@@ -105,7 +105,7 @@
                     for sname, sval in sorted(stats.items())]
         self.wview('pyvaltable', pyvalue=pyvalue, header_column_idx=0)
         # open repo sessions
-        if req.cnx.is_repo_in_memory and req.user.is_in_group('managers'):
+        if req.user.is_in_group('managers'):
             w(u'<h3>%s</h3>' % _('opened sessions'))
             sessions = repo._sessions.values()
             if sessions: