예제 #1
0
 def getRoom(self):
     room = Room.getByName("ac12")
     print room
     if room != None:
         print room.name
         print room.room_id
         print room.capacity
예제 #2
0
 def updateRoom(self):
     room = Room.getByName("ac12")
     print room
     room.capacity = 91
     room.update()
예제 #3
0
 def deleteRoom(self):
     room = Room.getByName("ac12")
     print room
     if room != None:
         print room.room_id
         Room.delete(room)