'Register a producer and start asking it for data if it is
non-streaming.
@type producer: L{IProducer <interfaces.IProducer>}
@param producer: A producer.
@type streaming: L{bool}
@param streaming: A flag indicating whether the producer provides a
streaming interface.'

def registerProducer(self, producer, streaming):

    self.myproducer = producer
    self.streaming = streaming
    if (not streaming):
        self.prodProducer()
