[Lyntin-cvs] CVS: lyntinng engine.py,1.80,1.81
Brought to you by:
glasssnake,
willhelm
From: will g. <wil...@us...> - 2003-01-24 03:01:07
|
Update of /cvsroot/lyntin/lyntinng In directory sc8-pr-cvs1:/tmp/cvs-serv9044 Modified Files: engine.py Log Message: Minor changes to session closing. We now tell the user which session we're switching to (no clue why we weren't doing this before) and when the engine closes the session (usually through #zap or Lyntin shutdown) it tells the session to close quietly so it doesn't say "hey--zap this session when you're done". Index: engine.py =================================================================== RCS file: /cvsroot/lyntin/lyntinng/engine.py,v retrieving revision 1.80 retrieving revision 1.81 diff -C2 -r1.80 -r1.81 *** engine.py 22 Jan 2003 03:09:28 -0000 1.80 --- engine.py 24 Jan 2003 03:01:04 -0000 1.81 *************** *** 440,443 **** --- 440,446 ---- else: exported.write_error("No session of that name.") + return + + exported.write_message("Switching to session '%s'." % self._current_session.getName()) def writeSession(self, message): *************** *** 468,472 **** return 0 ! ses.shutdown(()) self.unregisterSession(ses) exported.hook_unregister("shutdown_hook", ses.shutdown) --- 471,475 ---- return 0 ! ses.shutdown((1,)) self.unregisterSession(ses) exported.hook_unregister("shutdown_hook", ses.shutdown) |