Exemplo n.º 1
0
 def cmd_import(self, options):
     """Import data into Stoq"""
     self._read_config(options, register_station=False)
     from stoqlib.importers import importer
     importer = importer.get_by_type(options.type)
     importer.feed_file(options.import_filename)
     importer.process()
Exemplo n.º 2
0
 def cmd_import(self, options):
     """Import data into Stoq"""
     self._read_config(options, register_station=False)
     from stoqlib.importers import importer
     importer = importer.get_by_type(options.type)
     importer.feed_file(options.filename)
     importer.process()