Exemplo n.º 1
0
def reservation_index():
    return object_list('reservations/index.html',
                       query=get_all(Reservation),
                       context_variable='reservations',
                       paginate_by=7,
                       check_bounds=False)
Exemplo n.º 2
0
def company_index():
    return object_list('companies/index.html',
                       query=get_all(Company),
                       context_variable='companies',
                       paginate_by=7,
                       check_bounds=False)
Exemplo n.º 3
0
def room_type_index():
    return render_template('room_types/index.html',
                           room_types=get_all(RoomType))
Exemplo n.º 4
0
def checkin_index():
    return object_list('checkins/index.html',
                       query=get_all(CheckIn),
                       context_variable='checkins',
                       paginate_by=7,
                       check_bounds=False)
Exemplo n.º 5
0
def user_index():
    return object_list('users/index.html',
                       query=get_all(User),
                       context_variable='users',
                       paginate_by=7,
                       check_bounds=False)
Exemplo n.º 6
0
def room_index():
    return object_list('rooms/index.html', query=get_all(Room),
                       context_variable='rooms', paginate_by=7,
                       check_bounds=False)
Exemplo n.º 7
0
def guest_index():
    return object_list('guests/index.html',
                       query=get_all(Guest),
                       context_variable='guests',
                       paginate_by=7,
                       check_bounds=False)