Changeset fdddbda in rattail


Ignore:
Timestamp:
04/04/19 16:40:41 (10 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
db251fa
Parents:
76f4a45
Message:

Let handler create importers for datasync consumer

turns out the "bug" wasn't in rattail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/datasync/consumers.py

    r76f4a45 rfdddbda  
    140140            keys = handler.get_importer_keys()
    141141
    142         importers = {}
    143         factories = handler.get_importers()
    144         for key in keys:
    145             # TODO: why can't we let the handler make importer?
    146             # (seemed to prevent datasync daemon from starting?!)
    147             # importers[key] = handler.get_importer(key)
    148             importers[key] = factories[key](config=self.config,
    149                                             direction=handler.direction)
    150 
     142        importers = dict([(key, handler.get_importer(key))
     143                          for key in keys])
    151144        return importers
    152145
Note: See TracChangeset for help on using the changeset viewer.