diff options
author | Martin Sivak <msivak@redhat.com> | 2010-09-07 14:57:14 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2010-09-07 14:57:14 +0200 |
commit | b6a8761af9a3e8ae547cf12992192931b95f0861 (patch) | |
tree | b91604ae00cdfbf953511902a8ff8c051568698e /firstaidkit | |
parent | 1d4ec7084f6368c16a1f81f29c869012f2c271c8 (diff) | |
download | firstaidkit-b6a8761af9a3e8ae547cf12992192931b95f0861.tar.gz firstaidkit-b6a8761af9a3e8ae547cf12992192931b95f0861.tar.xz firstaidkit-b6a8761af9a3e8ae547cf12992192931b95f0861.zip |
Changes to FAK Gui and Info object
- Gui allows to save results in info object
- Info object allows attaching files and saving as .zip archive
Diffstat (limited to 'firstaidkit')
-rwxr-xr-x | firstaidkit | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firstaidkit b/firstaidkit index 7228db5..2ad6a93 100755 --- a/firstaidkit +++ b/firstaidkit @@ -19,7 +19,7 @@ import sys, getopt, getpass, os, pprint, logging, re, readline, hashlib from threading import Thread from pyfirstaidkit import Tasker -from pyfirstaidkit import Config +from pyfirstaidkit import Config, Info from pyfirstaidkit import reporting from pyfirstaidkit import initLogger from pyfirstaidkit.errors import InvalidPluginNameException @@ -158,10 +158,10 @@ class Output(Thread): raise AssertionError("Unsupported question type %s" % message["action"]) class GuiOutput(Thread): - def __init__(self, cfg, tasker, dir, importance = logging.INFO, + def __init__(self, cfg, info, tasker, dir, importance = logging.INFO, *args, **kwargs): Thread.__init__(self, *args, **kwargs) - self.w = MainWindow(cfg, tasker, importance = importance, dir=dir) + self.w = MainWindow(cfg, info, tasker, importance = importance, dir=dir) def run(self): self.w.run() @@ -369,13 +369,13 @@ if __name__=="__main__": outputThread = Output(singlerun.reporting(), interactive = Config.operation.gui!="gtk") if Config.operation.gui=="gtk": - outputThreadGui = GuiOutput(Config, singlerun, + outputThreadGui = GuiOutput(Config, Info, singlerun, dir = os.path.dirname(frontend_gtk.__file__)) else: outputThread = Output(singlerun.reporting(), importance = 0, interactive = Config.operation.gui!="gtk") if Config.operation.gui=="gtk": - outputThreadGui = GuiOutput(Config, singlerun, importance = 0, + outputThreadGui = GuiOutput(Config, Info, singlerun, importance = 0, dir = os.path.dirname(frontend_gtk.__file__)) if Config.operation.gui=="gtk": |