homepage

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

AltStyle によって変換されたページ (->オリジナル) /