Commit 622a60ea authored by Antoine Millet's avatar Antoine Millet

Connection attribute on RpcProxy is now public, and can be accessed with obj.connection.

parent 24b7b8a4
......@@ -23,12 +23,12 @@ class ConnectionProxy(object):
'''
def __init__(self, connection):
self._connection = connection
self.connection = connection
def __getattr__(self, name):
def func(*args, **kwargs):
try:
returned = self._connection.call(name, *args, **kwargs)
returned = self.connection.call(name, *args, **kwargs)
except RpcError as err:
expt = __builtins__.get(err.exception)
if expt is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment