xmlrpclib problem

Fredrik Lundh fredrik at pythonware.com
Thu Apr 27 05:44:16 EDT 2000


Michael Esveldt <dante at oz.net> wrote:
> I'm working with xmlrpclib to talk to Userland's Manila application and 
> I'm having a problems sending html via xmlrpc. Here's the code I'm 
> working with
> 
> mysite = xmlrpclib.Server("http://mysite.editthispage.com") 
> mysite.manila.message.set(username, password, sitename, msgNum, "my 
> subject", "body containing html", "text/x-outline-tabbed", {}, 
> {"name":"pikeRenderer", "flRenderOnEntry":"true"})
> 
> I've tried changing "text/x-outline-tabbed" to "text/plain" and 
> "text/html", none of these have any effect. What's happening is that my 
> "body containing html" is coming out on the other side with < and 
> > instead of actual tags. Obviously this results in displaying html 
> instead of rendering it.
> 
> Is this a problem with xmlrpclib, how I'm using it, or with the server 
> decoding my xmlrpc messages?

it's a bug in Manila:
http://discuss.userland.com/msgReader$16672

here's a workaround for xmlrpclib.py:
http://zopefish.weblogs.com/discuss/msgReader$19

</F>





More information about the Python-list mailing list