Exemplo n.º 1
0
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())
Exemplo n.º 2
0
def room_all():
    dao = Room()
    return template("room/all", rooms = dao.get_all())