Hi, maybe this is a FAQ? But I didn't find anything in the archives. 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? Thanks Ulrich
Ulrich Wisser wrote:
Hi,
maybe this is a FAQ? But I didn't find anything in the archives.
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? -- michael
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. /Ulrich
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 -- michael
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. /Ulrich
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
Ulrich Wisser wrote at 2004-6-8 12:04 +0200:
maybe this is a FAQ? But I didn't find anything in the archives.
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?
Learn how to allow specific imports ("README" of "PythonScripts" or Zope Developer Guide). -- Dieter
participants (3)
-
Dieter Maurer -
Michael Haubenwallner -
Ulrich Wisser