Beispiel #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)]