summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2008-05-06 16:24:46 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2008-05-06 16:24:46 +0000
commite6ced35fbdd3385e2a660f5b40366f0382796d01 (patch)
tree34a4966dd2ab40100a63f0909d2ff6fdd0c4f927 /qpid/python
parentb6ab6f5fb40d69290f25ca8744bf12775099a951 (diff)
downloadqpid-python-e6ced35fbdd3385e2a660f5b40366f0382796d01.tar.gz
This is a fix for QPID-1031
I added read/write methods for datetime that calls int64. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@653830 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/codec010.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/python/qpid/codec010.py b/qpid/python/qpid/codec010.py
index 1c76666de1..68573921d7 100644
--- a/qpid/python/qpid/codec010.py
+++ b/qpid/python/qpid/codec010.py
@@ -102,12 +102,16 @@ class Codec(Packer):
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):