Comment 10 for bug 541486

Revision history for this message
Martin Pitt (pitti) wrote :

Please note that Report objects (from the ProblemReport super class) already have that built in. To attach a file and force compression, do

  report['FooFile'] = ('/tmp/foo.log', True).

Please see

  python -c 'import problem_report; help(problem_report.ProblemReport)'

the "write" method.