This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: better datetime support for xmlrpclib
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: effbot, fdrake, skip.montanaro
Priority: normal Keywords: patch

Created on 2005-02-10 21:25 by fdrake, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
xmlrpclib-datetime.patch fdrake, 2005-02-10 21:25
Messages (4)
msg47748 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2005-02-10 21:25
This patch makes it possible for an application to ask
that datetime objects be used instead of
xmlrpclib.DateTime instances.

I'm submitting this as a patch instead of checking this
in since it's a more invasive change to Fredrik's
module than my earlier change to make it accept
datetime objects as valid date/time values.
msg47749 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-03-18 02:27
Logged In: YES 
user_id=44345

I just implemented something similar in a copy of xmlrpclib I installed on
a 2.3 system.  In addition to allowing <dateTime.iso8601> strings to
decode to datetime.datetime objects, I allowed datetime.time and
datetime.date objects as input.  The former is accomodated by
setting the date part to the current date, the latter by setting the time
to 00:00:00.

Fredrik, any comment?  I think it would improve the transparency of
Python's xmlrpc interface if datetime objects worked at both ends of
the transmission.
msg47750 - (view) Author: Fredrik Lundh (effbot) * (Python committer) Date: 2005-03-24 11:09
Logged In: YES 
user_id=38376

I don't have time to review the patches, but I agree that this 
would be a good thing, and that it's better to support it at 
both ends.

Skip, I'm assigning this one to you. Can you check Fred's 
patch, merge relevant portions with your patch, and check it 
all in?
msg47751 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-05-14 20:55
Logged In: YES 
user_id=44345

libxmlrpclib.tex 1.23, xmlrpclib.py 1.41, test_xmlrpc.py 1.9
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41561
2005-02-10 21:25:53fdrakecreate