web/views/debug.py
changeset 9671 a16fcf064323
parent 9670 5b661f58978c
child 10309 35bf741203d6
child 11059 42a4d52dc88d
--- a/web/views/debug.py	Wed Apr 09 10:49:18 2014 +0200
+++ b/web/views/debug.py	Wed Apr 09 10:51:15 2014 +0200
@@ -131,19 +131,9 @@
             sessions = SESSION_MANAGER.current_sessions()
             w(u'<h3>%s</h3>' % _('opened web sessions'))
             if sessions:
-                n_no_cnx_sessions = 0
                 w(u'<ul>')
                 for session in sessions:
-                    if not session.cnx:
-                        # We do not want to list all sessions without cnx
-                        # Their session ID are useless, hence we just count them
-                        n_no_cnx_sessions += 1
-                        continue
-                    try:
-                        last_usage_time = session.cnx.check()
-                    except BadConnectionId:
-                        w(u'<li>%s (INVALID)</li>' % session.sessionid)
-                        continue
+                    last_usage_time = session.mtime
                     w(u'<li>%s (%s: %s)<br/>' % (
                         session.sessionid,
                         _('last usage'),
@@ -151,9 +141,6 @@
                     dict_to_html(w, session.data)
                     w(u'</li>')
                 w(u'</ul>')
-                if n_no_cnx_sessions > 0:
-                    w(u'<h3>%s %s</h3>' % (n_no_cnx_sessions,
-                                           _('web sessions without CNX')))
             else:
                 w(u'<p>%s</p>' % _('no web sessions found'))