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()
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()