diff options
| author | Ted Ross <tross@apache.org> | 2011-01-11 16:02:23 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-01-11 16:02:23 +0000 |
| commit | 8850626ab31ff00e0eca619fda60a72775005eaa (patch) | |
| tree | 26401f8d7645e4b6530def1321976892ffbbd51a /qpid/cpp/bindings/qmf2/python | |
| parent | e6d7b4bec1db40e93496177db4fdcc0b2cc8fcd2 (diff) | |
| download | qpid-python-8850626ab31ff00e0eca619fda60a72775005eaa.tar.gz | |
QMFv2 API change:
1) Added public constructor for DataAddr(Variant::Map)
2) Fixed Python and Ruby typemaps to support Variant::Map& and Variant::List& with const
3) Added support for building Queries based on object-id maps in both Python and Ruby wrappers
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1057709 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf2/python')
| -rw-r--r-- | qpid/cpp/bindings/qmf2/python/qmf2.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/qpid/cpp/bindings/qmf2/python/qmf2.py b/qpid/cpp/bindings/qmf2/python/qmf2.py index 28e40d59ca..911b080dfd 100644 --- a/qpid/cpp/bindings/qmf2/python/qmf2.py +++ b/qpid/cpp/bindings/qmf2/python/qmf2.py @@ -311,7 +311,7 @@ class Agent(object): """ """ if q.__class__ == Query: - q_arg = Query._impl + q_arg = q._impl else: q_arg = q dur = cqpid.Duration(cqpid.Duration.SECOND.getMilliseconds() * timeout) @@ -366,10 +366,11 @@ class Query(object): """ """ - def __init__(self, *kwargs): + def __init__(self, arg1, arg2=None, arg3=None, *kwargs): """ """ - pass + if arg1.__class__ == DataAddr: + self._impl = cqmf2.Query(arg1._impl) #=================================================================================================== # DATA @@ -518,8 +519,11 @@ class DataAddr(object): """ """ - def __init__(self, impl): - self._impl = impl + def __init__(self, arg): + if arg.__class__ == dict: + self._impl = cqmf2.DataAddr(arg) + else: + self._impl = arg def __repr__(self): return "%s:%s" % (self.getAgentName(), self.getName()) |
