diff -r 5b661f58978c -r a16fcf064323 web/views/debug.py
--- 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'
%s
' % _('opened web sessions'))
if sessions:
- n_no_cnx_sessions = 0
w(u'')
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'- %s (INVALID)
' % session.sessionid)
- continue
+ last_usage_time = session.mtime
w(u'- %s (%s: %s)
' % (
session.sessionid,
_('last usage'),
@@ -151,9 +141,6 @@
dict_to_html(w, session.data)
w(u' ')
w(u'
')
- if n_no_cnx_sessions > 0:
- w(u'%s %s
' % (n_no_cnx_sessions,
- _('web sessions without CNX')))
else:
w(u'%s
' % _('no web sessions found'))