def get(self): articles = Article.all().fetch(300) context = { 'articles' : articles, 'new' : self.request.args.get('new') } return self.render_response('admin_articles.html', **context)
def get(self): articles = Article.all().order('-date').fetch(300) context = { 'new' : self.request.args.get('new'), 'articles' : articles } return self.render_response('admin_list_articles.html', **context)
def get(self): articles = Article.all().order('-date').fetch(3) events = Event.all().order('-date').fetch(3) self.context = { 'articles' : articles, 'events' : events, 'lang' : self.request.cookies.get(self.i18n.config['locale_request_lookup'][0][1]) }