class Client: """Class for brain DB client""" def __init__(self, addr): self._client = MyServerProxy(addr, exceptions=[FacadeError, FormatError, LogicError, StructureError, BrainXMLRPCError]) def getEngineTags(self): return self._client.getEngineTags() def getDefaultEngineTag(self): return self._client.getDefaultEngineTag() def connect(self, *args, **kwds): return _RemoteConnection(self._client, *args, **kwds)
def __init__(self, addr): self._client = MyServerProxy(addr, exceptions=[FacadeError, FormatError, LogicError, StructureError, BrainXMLRPCError])