From 9022370fe9a1f243ce889b347313ec91669c55db Mon Sep 17 00:00:00 2001 From: Ramin Yaghoubzadeh <ryaghoubzadeh@uni-bielefeld.de> Date: Fri, 20 Feb 2015 16:54:53 +0100 Subject: [PATCH] Py: rsb0.11 and IU __str__ fix --- ipaacalib/python/src/ipaaca/buffer.py | 2 +- ipaacalib/python/src/ipaaca/iu.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ipaacalib/python/src/ipaaca/buffer.py b/ipaacalib/python/src/ipaaca/buffer.py index 9e9427e..fe7e8b6 100644 --- a/ipaacalib/python/src/ipaaca/buffer.py +++ b/ipaacalib/python/src/ipaaca/buffer.py @@ -371,7 +371,7 @@ class OutputBuffer(Buffer): ''' super(OutputBuffer, self).__init__(owning_component_name, channel, participant_config) self._unique_name = '/ipaaca/component/' + str(owning_component_name) + 'ID' + self._uuid + '/OB' - self._server = rsb.createServer(rsb.Scope(self._unique_name)) + self._server = rsb.createLocalServer(rsb.Scope(self._unique_name)) self._server.addMethod('updateLinks', self._remote_update_links, ipaaca.converter.IULinkUpdate, int) self._server.addMethod('updatePayload', self._remote_update_payload, ipaaca.converter.IUPayloadUpdate, int) self._server.addMethod('commit', self._remote_commit, ipaaca_pb2.IUCommission, int) diff --git a/ipaacalib/python/src/ipaaca/iu.py b/ipaacalib/python/src/ipaaca/iu.py index 71f2050..bb19343 100644 --- a/ipaacalib/python/src/ipaaca/iu.py +++ b/ipaacalib/python/src/ipaaca/iu.py @@ -110,11 +110,11 @@ class IUInterface(object): s += "owner_name=" + ("<None>" if self.owner_name is None else self.owner_name) + " " s += "payload={ " for k,v in self.payload.items(): - s += k+":'"+v+"', " + s += k+":'"+unicode(v)+"', " s += "} " s += "links={ " for t,ids in self.get_all_links().items(): - s += t+":'"+str(ids)+"', " + s += t+":'"+unicode(ids)+"', " s += "} " s += "}" return s -- GitLab