[Zope] Re: XML-RPC and dates
Michael Haubenwallner
michael at d2m.at
Tue Jun 8 07:34:12 EDT 2004
Ulrich Wisser wrote:
> Michael Haubenwallner wrote:
>
>> Ulrich Wisser wrote:
>>
>>> Hello Michael,
>>>
>>>>> I would like to include dates in my xml-rpc answers. Zope gives me
>>>>> an error "long int exceeds XML-RPC limits". In my Script (Python) I
>>>>> am not allowed to import the DateTime class from xmlrpclib.
>>>>>
>>>>> Do I really have to use external methods?
>>>>
>>>>
>>>> Have you tried to convert the date to string and send a string?
>>>
>>>
>>> Yes I did. But then it it send as <string /> markup, not as
>>> <date.iso8601 /> markup.
>>
>>
>> how about this?
>> http://www.python.org/doc/current/lib/datetime-objects.html
>
>
> Yes, that works very well in my external method. But I can not import
> xmlrpclib in a Python Script object.
>
no you can't. use an external method or use XMLRPCmethod
> /Ulrich
>
--
michael
More information about the Zope
mailing list