Exemplo n.º 1
0
def getRecentPosts(blog_id, username, password, numberOfPosts):
    """docstring for getRecentPosts"""
    print '---\nrunning metaWeblog.getRecentPosts'
    if blog_id == 'Static':
        return [page_to_struct(page) for page in Page.get_all(numberOfPosts)]
    else:
        return [page_to_struct(page) for page in Post.get_all(numberOfPosts)]
Exemplo n.º 2
0
def pages():
    """docstring for pages"""
    page_list = Post.get_all()
    return render_template('pages.html', page_list=page_list)