From 622a60ea55e146d3d444efc5ba107e6a5334b0a7 Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Mon, 20 Dec 2010 17:17:28 +0100 Subject: [PATCH] Connection attribute on RpcProxy is now public, and can be accessed with obj.connection. --- sjrpc/utils/proxies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sjrpc/utils/proxies.py b/sjrpc/utils/proxies.py index c740213..c4e8355 100644 --- a/sjrpc/utils/proxies.py +++ b/sjrpc/utils/proxies.py @@ -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: -- GitLab