Beispiel #1
0
def publishList(request):
     
    publishs = Publish.all().order('-publish_date')
    template_values = {'publishs': publishs,
                       'userName': users.get_current_user().nickname().split('@')[0],
                       'logout': users.create_logout_url('/')}
                  
    return render_to_response('admin/publish/publish.html', template_values)    
Beispiel #2
0
def mainPage(request):

    publishs = Publish.all().order('-publish_date')
    
    template_values = {'publishs': publishs}
                
    if users.get_current_user():
        template_values['userName'] = users.get_current_user().nickname().split('@')[0]
        template_values['logout'] = users.create_logout_url('/')
        
    return render_to_response('index.html', template_values)