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

2005-08-31 Thread Stephan Richter
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.

If this is not done, I would consider it even to be a Zope 3 bug.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



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

2005-08-31 Thread Stephan Richter
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
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com