def __init__(self, settings, *args, **kwargs): self.settings = settings OperationFactory.__init__(self, *args, **kwargs) # add input streams according to the settings for i in range(len(settings.settings)): self.debug("Adding stream %d %r", i, settings.settings[i].input_stream) self.addInputStream(settings.settings[i].input_stream)
def addOutputStream(self, stream): if len(self.output_streams) > 1: raise OperationFactoryError("Can't handle more than one stream") return OperationFactory.addOutputStream(self, stream)
def addOutputStream(self, stream): return OperationFactory.addOutputStream(self, stream)