pass sql list through to importer from fpdb.py

This commit is contained in:
sqlcoder 2009-08-01 23:29:00 +01:00
parent e2dde5c3e3
commit cffe57dfa3
2 changed files with 4 additions and 3 deletions

View File

@ -31,10 +31,11 @@ import Configuration
import string
class GuiAutoImport (threading.Thread):
def __init__(self, settings, config):
def __init__(self, settings, config, sql):
"""Constructor for GuiAutoImport"""
self.settings=settings
self.config=config
self.sql = sql
imp = self.config.get_import_parameters()
@ -44,7 +45,7 @@ class GuiAutoImport (threading.Thread):
self.input_settings = {}
self.pipe_to_hud = None
self.importer = fpdb_import.Importer(self,self.settings, self.config)
self.importer = fpdb_import.Importer(self, self.settings, self.config, self.sql)
self.importer.setCallHud(True)
self.importer.setMinPrint(settings['minPrint'])
self.importer.setQuiet(False)

View File

@ -491,7 +491,7 @@ class fpdb:
def tab_auto_import(self, widget, data=None):
"""opens the auto import tab"""
new_aimp_thread=GuiAutoImport.GuiAutoImport(self.settings, self.config)
new_aimp_thread=GuiAutoImport.GuiAutoImport(self.settings, self.config, self.sql)
self.threads.append(new_aimp_thread)
aimp_tab=new_aimp_thread.get_vbox()
self.add_and_display_tab(aimp_tab, "Auto Import")