def room_new(): if saved(request.GET): dao = Room() dao.insert(request.GET) redirect('/room/all') else: dao = Department() return template("room/new", departments = dao.get_all())
def room_all(): dao = Room() return template("room/all", rooms = dao.get_all())