[Zope3-dev] how-to fool XML-RPC publisher

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Aug 31 06:24:53 EDT 2005


On Tuesday 30 August 2005 11:55, Adam Groszer wrote:
> Is there any way to fool the Z3 XML-RPC publisher to unmarshall
> strings *always* as unicode? I think the problem is that xmlrpclib
> tries to convert all strings to str, but in Z3, all strings should be
> stored as unicode. Even better that zope.schema enforces unicode also.
> So my exposed methods would start with converting all necessary
> parameters to unicode.

Darn, I pressed send to fast. I think you can register custom objects to 
unmarshall the data. This custom object could handle the unicode issue for 
you (I have not tried this yet though).

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list