xml-rpc problem posting with python
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.
- The topic ‘xml-rpc problem posting with python’ is closed to new replies.