Remove XML-RPC DateTime marshalling and unmarshalling code when Launchpad is upgraded to run on Python2.5

Bug #254999 reported by Graham Binns
12
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Gavin Panella

Bug Description

At the moment there are a couple of places where we marshal datetime.datetime objects manually into xmlrpclib.DateTime objects because, if we don't, xmlrpclib will explode with the error:

  TypeError: cannot marshal <type 'datetime.datetime'> objects

Furthermore, we currently manually unmarshal xmlrpclib.DateTimes in a couple of places. Python 2.5 allows us to specify use_datetime=True when we create ServerProxies, which will cause it to automatically unmarshal xmlrplib.DateTimes in to datetime.datetimes.

These manual marshallings and unmarshallings occur at:

 l/c/l/components/externalbugtracker/bugzilla.py:430
 l/c/l/components/externalbugtracker/bugzilla.py:611
 l/c/l/ftests/bugzilla-xmlrpc-transport.txt:231
 l/c/l/ftests/bugzilla-xmlrpc-transport.txt:268
 l/c/l/ftests/externalbugtracker.txt:582

Related branches

Graham Binns (gmb)
description: updated
Graham Binns (gmb)
description: updated
Changed in malone:
importance: Undecided → Low
status: New → Triaged
Curtis Hovey (sinzui)
tags: added: tech-debt
Revision history for this message
Gavin Panella (allenap) wrote :

Doing this as I read through the checkwatches and externalbugtracker code.

Changed in malone:
assignee: nobody → Gavin Panella (allenap)
status: Triaged → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit
Changed in malone:
status: In Progress → Fix Committed
Ursula Junque (ursinha)
Changed in malone:
milestone: none → 10.01
Gavin Panella (allenap)
Changed in malone:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
visibility: private → public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.