Esempio n. 1
0
def new_post(blog_id, username, password, post, publish):
    """metaWeblog.newPost(blog_id, username, password, post, publish)
    => post_id"""
    post_id = metaweblog.new_post(blog_id, username, password, finesse_fields_to_commit(post), publish)
    update_post_status(post_id, username, password, post)
    return post_id
Esempio n. 2
0
def new_post(blog_id, username, password, content):
    """wp.newPost(blog_id, username, password, content)
    => post_id"""
    return metaweblog.new_post(blog_id, username, password, finesse_fields_to_commit(content), publish)