def getRoom(self): room = Room.getByName("ac12") print room if room != None: print room.name print room.room_id print room.capacity
def updateRoom(self): room = Room.getByName("ac12") print room room.capacity = 91 room.update()
def deleteRoom(self): room = Room.getByName("ac12") print room if room != None: print room.room_id Room.delete(room)