示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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])
     }