Changeset dd51e74 in rattail


Ignore:
Timestamp:
04/04/19 13:33:14 (6 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
76f4a45
Parents:
7ed5ebc
Message:

Make sure importer knows "direction" when used within datasync

i.e. set importer direction to match handler, when first instantiating

ideally we could just let the handler itself create the importer, i.e. in the
same way as is done for command line imports, but for some reason when
i (briefly) tried that it prevented datasync from starting up properly...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/datasync/consumers.py

    r7ed5ebc rdd51e74  
    143143        factories = handler.get_importers()
    144144        for key in keys:
    145             importers[key] = factories[key](config=self.config)
     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)
    146150
    147151        return importers
Note: See TracChangeset for help on using the changeset viewer.