You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2008/05/06 18:24:46 UTC
svn commit: r653830 - /incubator/qpid/trunk/qpid/python/qpid/codec010.py
Author: rajith
Date: Tue May 6 09:24:46 2008
New Revision: 653830
URL: http://svn.apache.org/viewvc?rev=653830&view=rev
Log:
This is a fix for QPID-1031
I added read/write methods for datetime that calls int64.
Modified:
incubator/qpid/trunk/qpid/python/qpid/codec010.py
Modified: incubator/qpid/trunk/qpid/python/qpid/codec010.py
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/codec010.py?rev=653830&r1=653829&r2=653830&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/codec010.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/codec010.py Tue May 6 09:24:46 2008
@@ -102,12 +102,16 @@
def write_int64(self, n):
self.pack("!q", n)
+ def read_datetime(self):
+ return self.read_uint64()
+ def write_datetime(self, n):
+ self.write_uint64(n)
+
def read_double(self):
return self.unpack("!d")
def write_double(self, d):
self.pack("!d", d)
-
def read_vbin8(self):
return self.read(self.read_uint8())
def write_vbin8(self, b):