WordPress.org

Ready to get started?Download WordPress

Forums

xml-rpc problem posting with python (1 post)

  1. gschaden
    Member
    Posted 4 years ago #

    I try to send a new post via xmlrpc to my wp blog.

    mo = wp.newMediaObject('/tmp/test.mp3')
    post = wordpresslib.WordPressPost()
    post.title = 'New mp3'
    post.description = '''
    Listen to mp3
    <object type="application/x-shockwave-flash" data="/player_mp3.swf" width="200" height="20">
    <param name="movie" value="player_mp3.swf" />
    <param name="FlashVars" value="mp3=%s" />
    </object>
    <a href="%s">listen</a>
    ''' % (mo, mo)
    idNewPost = wp.newPost(post, False)

    but when looking at the draft the object section is missing

    Listen to mp3
    
    <a href="http://XXX/wp/wp-content/uploads/2009/07/test.mp3">listen</a>

    Any hints how to debug the problem, is it related to the content filters? It does not look like an libxml2 bug.

    -GES

Topic Closed

This topic has been closed to new replies.

About this Topic