class ExportInterface(object): ''' The interface that will be exposed via Pyro ''' def __init__(self, path, name): self.exportName = 'export.' + name + '.' + config().servicename logger.info('Creating remote interface for: ' + path) self.export = Export(path, self.exportName) logger.info('Remote Interface for: ' + path + ' will be exposed on ' + str(self.export.getRootUri())) def refresh(self): self.export.refresh() def getItem(self, uri=None): if None == uri: uri = self.export.getRootUri() return self.export.getItem(uri)
def __init__(self, path, name): self.exportName = 'export.' + name + '.' + config().servicename logger.info('Creating remote interface for: ' + path) self.export = Export(path, self.exportName) logger.info('Remote Interface for: ' + path + ' will be exposed on ' + str(self.export.getRootUri()))