Exemple #1
0
 def GET(self):
     check_installed()
     if user.logged(session):
         published_posts = blog.get_published_posts()
         unpublished_posts = blog.get_unpublished_posts()
         render = user.create_render(session)
         return render.americano(gen_head(), gen_offleft(), published_posts, unpublished_posts, htmltruncate)
     else:
         raise web.seeother('/login')
Exemple #2
0
 def GET(self):
     check_installed()
     if user.logged(session):
         published_posts = blog.get_published_posts()
         unpublished_posts = blog.get_unpublished_posts()
         render = user.create_render(session)
         return render.americano(gen_head(), gen_offleft(), published_posts,
                                 unpublished_posts, htmltruncate)
     else:
         raise web.seeother('/login')
Exemple #3
0
 def GET(self):
     check_installed()
     posts = blog.get_published_posts()
     render = web.template.render('templates/common', globals=t_globals)
     return render.blog(gen_head(), gen_offleft(), posts)
Exemple #4
0
 def GET(self):
     check_installed()
     posts = blog.get_published_posts()
     render = web.template.render('templates/common', globals=t_globals)
     return render.blog(gen_head(), gen_offleft(), posts)