Ejemplo n.º 1
0
	def getBuildingInfo(self,gender = 'MALE',campus= 'JIADINGCAMPUS' ):
	    buildingNum = int(pini.read_config(self.config_file_path,campus+gender,'buildingnum'))
	    buildingList= []
	    for i in range(1,buildingNum+1):
		temp = pini.read_config(self.config_file_path,campus+gender,'building'+str(i)).split(':')
		buildingList.append(temp)
	    return buildingList
Ejemplo n.º 2
0
	def getUserInfo(self):
	    self.id = pini.read_config(self.config_file_path,'USERINFO','id')
	    self.pwd = pini.read_config(self.config_file_path,'USERINFO','pwd')
	    roomNum = int(pini.read_config(self.config_file_path,'ROOM','roomNum'))
	    self.campus = pini.read_config(self.config_file_path,'USERINFO','campus')
	    self.gender = pini.read_config(self.config_file_path,'USERINFO','gender');
            self.mylist = []
	    for i in range(1,roomNum+1):
		temp = pini.read_config(self.config_file_path,'ROOM','room'+str(i)).split(':')
		self.mylist.append(temp)