Ejemplo n.º 1
0
def session_list():
    session_list = Session.list(limit=1000)

    sorter = lambda x: x['session']['start'].date()

    sessions_by_date = itertools.groupby(session_list, key=sorter)

    return render_template('sessions/all.html', **{
        'sessions_by_date': sessions_by_date,
    })
Ejemplo n.º 2
0
def session_list():
    session_list = Session.list(limit=1000)

    sorter = lambda x: x['session']['start'].date()

    sessions_by_date = itertools.groupby(session_list, key=sorter)

    return render_template('sessions/all.html', **{
        'sessions_by_date': sessions_by_date,
    })
Ejemplo n.º 3
0
def landing_page():
    thread_list = Thread.list(limit=15)

    session_list = Session.list_upcoming(limit=10)

    # user_list = User.list(limit=100)

    return render_template('landing.html', **{
        # 'user_list': user_list or [],
        'thread_list': thread_list,
        'session_list': session_list,
    })
Ejemplo n.º 4
0
def landing_page():
    thread_list = Thread.list(limit=15)

    session_list = Session.list_upcoming(limit=10)

    # user_list = User.list(limit=100)

    return render_template(
        'landing.html',
        **{
            # 'user_list': user_list or [],
            'thread_list': thread_list,
            'session_list': session_list,
        })