From 72b890c56190bd5941968405748411859e073ee8 Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Fri, 29 Jan 2010 17:45:49 -0500 Subject: [PATCH] add "HUD Test mode" checkbox to bulk import, doesn't currently do anything. intent is to make the program auto open a dummy window for a hud to attach to, so we can bulk import files to investigate hud issues --- pyfpdb/GuiBulkImport.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyfpdb/GuiBulkImport.py b/pyfpdb/GuiBulkImport.py index a64a9425..96842134 100755 --- a/pyfpdb/GuiBulkImport.py +++ b/pyfpdb/GuiBulkImport.py @@ -89,7 +89,8 @@ class GuiBulkImport(): for selection in selected: self.importer.addBulkImportImportFileOrDir(selection, site = sitename) - self.importer.setCallHud(False) + self.importer.setCallHud(self.cb_testmode.get_active()) + self.importer.bHudTest = self.cb_testmode.get_active() starttime = time() # try: (stored, dups, partial, errs, ttime) = self.importer.runImport() @@ -228,6 +229,10 @@ class GuiBulkImport(): ypadding=0, yoptions=gtk.SHRINK) self.cb_dropindexes.show() + self.cb_testmode = gtk.CheckButton('HUD Test mode') + self.table.attach(self.cb_testmode, 0, 1, 2, 3, xpadding=10, ypadding=0, yoptions=gtk.SHRINK) + self.cb_testmode.show() + # label - filter self.lab_filter = gtk.Label("Site filter:") self.table.attach(self.lab_filter, 1, 2, 2, 3, xpadding=0, ypadding=0,