Пример #1
0
def get_movie_list():
    """ List of all movies.
    """
    return template("movie_list", movies=repo.match(Movie).order_by("_.title"))
Пример #2
0
def get_index():
    """ Index page.
    """
    return template("index")
Пример #3
0
def get_person_list():
    """ List of all people.
    """
    return template("person_list",
                    people=repo.match(Person).order_by("_.name"))
Пример #4
0
def get_movie(title):
    """ Page with details for a specific movie.
    """
    return template("movie", movie=repo.get(Movie, title))