def __init__(self, server='localhost', path_prefix='', port=9090, appname="RESTLib"): ClientInterface.__init__(self) self.server = server self.port = port self.appname = appname self.clientid = None self.prefix = path_prefix
def __init__(self, server='localhost', port=9090, appname="PyroClient"): ClientInterface.__init__(self) self.appname = appname self.clientid = None self.client = Pyro.core.getProxyForURI( "PYROLOC://{0}:{1}/automaton".format(server, port))