[Tn5250py-commits] tn5250py/src/lib5250py SessionManager.py,1.2,1.3
Status: Inactive
Brought to you by:
pbielen
|
From: <pb...@us...> - 2003-03-06 12:00:13
|
Update of /cvsroot/tn5250py/tn5250py/src/lib5250py
In directory sc8-pr-cvs1:/tmp/cvs-serv12201/src/lib5250py
Modified Files:
SessionManager.py
Log Message:
Code cleanup
Index: SessionManager.py
===================================================================
RCS file: /cvsroot/tn5250py/tn5250py/src/lib5250py/SessionManager.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SessionManager.py 19 Jul 2002 16:30:35 -0000 1.2
--- SessionManager.py 6 Mar 2003 12:00:09 -0000 1.3
***************
*** 3,7 ****
Created by Nathanael Custer 2002-07-01
"""
-
from Sessions import Sessions
--- 3,6 ----
***************
*** 10,28 ****
# Tunable parameters
DEBUGLEVEL = 0
!
! # Telnet Port
! TELNET_PORT = 23
class SessionManager:
def __init__(self):
self.MasterSessionList = Sessions()
def getSessions(self):
return self.MasterSessionList
def openSession(self, name=''):
self.MasterSessionList._addSession(name)
return self.MasterSessionList.item(name)
def closeSession(self, name=''):
session = self.MasterSessionList.item(name)
self.MasterSessionList._delSession(name)
def refresh(self):
return self.MasterSessionList
--- 9,29 ----
# Tunable parameters
DEBUGLEVEL = 0
! # Telnet Port
TELNET_PORT = 23
class SessionManager:
def __init__(self):
self.MasterSessionList = Sessions()
+
def getSessions(self):
return self.MasterSessionList
+
def openSession(self, name=''):
self.MasterSessionList._addSession(name)
return self.MasterSessionList.item(name)
+
def closeSession(self, name=''):
session = self.MasterSessionList.item(name)
self.MasterSessionList._delSession(name)
+
def refresh(self):
return self.MasterSessionList
***************
*** 42,44 ****
print "One less"
print a.list
-
--- 43,44 ----
|