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')
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)