From 02f19f9718c7837463bfef8a01d589e0d9c4bb11 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Mon, 10 Jan 2011 14:08:50 +0000 Subject: Updated Python and Ruby wrappers to reflect API changes. Updates to the agent examples. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1057200 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qmf2/python/qmf2.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cpp/bindings/qmf2/python/qmf2.py') diff --git a/cpp/bindings/qmf2/python/qmf2.py b/cpp/bindings/qmf2/python/qmf2.py index 285b47ebbe..28e40d59ca 100644 --- a/cpp/bindings/qmf2/python/qmf2.py +++ b/cpp/bindings/qmf2/python/qmf2.py @@ -385,10 +385,8 @@ class Data(object): self._impl = cqmf2.Data() elif arg.__class__ == cqmf2.Data: self._impl = arg - elif arg.__class__ == SchemaId: - self._impl = cqmf2.Data(arg._impl) elif arg.__class__ == Schema: - self._impl = cqmf2.Data(arg.getSchemaId()._impl) + self._impl = cqmf2.Data(arg._impl) else: raise Exception("Unsupported initializer for Data") self._schema = None @@ -444,6 +442,7 @@ class Data(object): ## validate that we have the right number of arguments supplied, and marshall them ## into a map for transmission. ## + arglist = [] methods = self._schema.getMethods() for m in methods: if m.getName() == name: @@ -683,6 +682,11 @@ class SchemaProperty(object): """ return self._impl.getName() + def getType(self): + """ + """ + return self._impl.getType() + def getAccess(self): """ """ -- cgit v1.2.1