diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-11-10 15:19:29 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-11-10 15:19:29 +0000 |
| commit | 8be83d96ee667728d8a5da0db2e68e29c2177dda (patch) | |
| tree | 8adb650a08d1eb5912970aa3e5142c4c74292abf /python/qpid/spec010.py | |
| parent | 36a1702b48b62a9df223c1244e4ea7fbd466f771 (diff) | |
| download | qpid-python-8be83d96ee667728d8a5da0db2e68e29c2177dda.tar.gz | |
added a timestamp class to qpid.datatypes and modified codec to use it for AMQP's datetime type; this fixes support of datetime within maps where formerly decoding and reencoding the same value would switch an entry in a map from an AMQP datetime to an AMQP uint64
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@712673 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/spec010.py')
| -rw-r--r-- | python/qpid/spec010.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/qpid/spec010.py b/python/qpid/spec010.py index 23966e6176..cbc85a5e8b 100644 --- a/python/qpid/spec010.py +++ b/python/qpid/spec010.py @@ -17,7 +17,7 @@ # under the License. # -import os, cPickle, datatypes +import os, cPickle, datatypes, datetime from codec010 import StringCodec from util import mtime, fill @@ -477,7 +477,9 @@ class Spec(Node): None.__class__: "void", list: "list", tuple: "list", - dict: "map" + dict: "map", + datatypes.timestamp: "datetime", + datetime.datetime: "datetime" } def __init__(self, major, minor, port, children): |
