Source code for sarracenia.flow.subscribe

from sarracenia.flow import Flow
import logging

logger = logging.getLogger(__name__)

default_options = {'acceptUnmatched': True, 'download': True, 'mirror': False}


[docs] class Subscribe(Flow): """ * subscribe to messages about files. * download the corresponding files. """
[docs] def __init__(self, options): super().__init__(options) self.plugins['load'].insert( 0, 'sarracenia.flowcb.gather.message.Message') if hasattr(self.o, 'post_exchange'): self.plugins['load'].insert( 0, 'sarracenia.flowcb.post.message.Message')