- Timestamp:
- 03/19/12 02:00:09 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/jsnyder/trunk/tools/cornetApps/DomainMan/models.py
r11070 r11071 19 19 """ 20 20 def __init__(self, thisFloor, thisNum): 21 ip =getIP(thisFloor, thisNum)22 port =getPort(thisFloor,thisNum)23 floor = thisFloor24 num = thisNum21 self.ip = self.getIP(thisFloor, thisNum) 22 self.port = self.getPort(thisFloor,thisNum) 23 self.floor = thisFloor 24 self.num = thisNum 25 25 26 26 def __unicode__(self): … … 58 58 else: 59 59 raise Exception("Floor input must be greater than 0 and less than 5") 60 61 class SSHClientList(): 62 clientList = {}; 63 64 def addClient(self, id, client): 65 clientList = {id: client}; 66 67 def getClient(self, id): 68 if clientList.__contains__(id): 69 return clientList.get(id) 70 else: 71 raise Exception("no".__add__(id).__add__("found"))