示例#1
0
文件: dbadmin.py 项目: barkinet/stoq
 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()
示例#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.import_filename)
     importer.process()