Remove get_ansiname() by condensing functionality into get_name(). Removed session debug statements I had in for testing.

This commit is contained in:
Greg Taylor 2007-04-26 20:32:56 +00:00
parent a73a3523af
commit 7012960a70
4 changed files with 68 additions and 49 deletions

View file

@ -24,11 +24,14 @@ def check_all_sessions():
"""
Check all currently connected sessions and see if any are dead.
"""
for sess in get_session_list():
if not sess.writable() or not sess.readable():
print 'Problematic Session:'
print 'Readable ', sess.readable()
print 'Writable ', sess.writable()
pass
#for sess in get_session_list():
## This doesn't seem to provide an accurate indication of timed out
## sessions.
#if not sess.writable() or not sess.readable():
# print 'Problematic Session:'
# print 'Readable ', sess.readable()
# print 'Writable ', sess.writable()
def remove_session(session):