示例#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)]
示例#2
0
文件: views.py 项目: cnf/MarkedImp
def pages():
    """docstring for pages"""
    page_list = Post.get_all()
    return render_template('pages.html', page_list=page_list)