Exemplo n.º 1
0
def idea_list(request, page, context):
    query = Idea.getQuery()
    p = GAEPaginator(query, COUNT)
    context["page"] = page
    context["ideas"] = p.page(page)
    return render_to_response('webfront/idea_list.html',context)
Exemplo n.º 2
0
def index(view, context):
    context["ideas"] = Idea.getQuery().fetch(10)
    return render_to_response('webfront/idea_index.html',context)