Exemple #1
0
  def get(self,pagenum):
    page = int(pagenum)
    #get blog pagination from cache.
    obj_page = util.getBlogPagination(page)
    if obj_page is None:
        self.redirect('/')

    recentReactions = util.getRecentReactions()
    template_values = {
      'page':obj_page,
      'recentReactions':recentReactions,
      }
    self.generate('blog_main.html',template_values)
Exemple #2
0
  def get(self):
    pageStr = self.request.get('page')
    if pageStr:
        page = int(pageStr)
    else:
        page = 1;

    #get blog pagination from cache.
    obj_page = util.getBlogPagination(page)

    recentReactions = util.getRecentReactions()
    recentFeatured = util.getRecentFeatured()
    template_values = {
      'page':obj_page,
      'recentReactions':recentReactions,
      'recentFeatured':recentFeatured,
      }
    self.generate('blog_main.html',template_values)
Exemple #3
0
  def get(self):
      pageStr = self.request.get('page')
      if pageStr:
          page = int(pageStr)
      else:
          page = 1;

      #get blog pagination from cache.
      obj_page = util.getBlogPagination(page)
      if obj_page is None:
          self.redirect('/')
          return
      recentReactions = util.getRecentReactions()
      template_values = {
        'page':obj_page,
        'recentReactions':recentReactions,
        }
      self.generate('admin/admin_layout.html',template_values)