~ubuntu-branches/ubuntu/intrepid/hwtest/intrepid

« back to all changes in this revision

Viewing changes to plugins/launchpad_report.py

  • Committer: Bazaar Package Importer
  • Author(s): Marc Tardif
  • Date: 2008-04-21 14:32:16 UTC
  • Revision ID: james.westby@ubuntu.com-20080421143216-hsikgcaqn1233jvr
Tags: 0.1-0ubuntu10
Fixed xalign and yalign in exchange summary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        # Launchpad report should be generated last.
45
45
        for (rt, rh, rp) in [
46
46
             ("report", self.report, 100),
47
 
             (("report", "client"), self.report_client, 0),
48
 
             (("report", "datetime"), self.report_datetime, 0),
49
 
             (("report", "architecture"), self.report_architecture, 0),
50
 
             (("report", "system_id"), self.report_system_id, 0),
51
 
             (("report", "distribution"), self.report_distribution, 0),
52
 
             (("report", "devices"), self.report_devices, 0),
53
 
             (("report", "packages"), self.report_packages, 0),
54
 
             (("report", "processors"), self.report_processors, 0),
55
 
             (("report", "questions"), self.report_questions, 0)]:
 
47
             ("report-client", self.report_client, 0),
 
48
             ("report-datetime", self.report_datetime, 0),
 
49
             ("report-architecture", self.report_architecture, 0),
 
50
             ("report-system_id", self.report_system_id, 0),
 
51
             ("report-distribution", self.report_distribution, 0),
 
52
             ("report-devices", self.report_devices, 0),
 
53
             ("report-packages", self.report_packages, 0),
 
54
             ("report-processors", self.report_processors, 0),
 
55
             ("report-tests", self.report_tests, 0)]:
56
56
            self._manager.reactor.call_on(rt, rh, rp)
57
57
 
58
58
    def report_client(self, message):
81
81
    def report_processors(self, message):
82
82
        self._report["hardware"]["processors"] = message
83
83
 
84
 
    def report_questions(self, message):
 
84
    def report_tests(self, message):
85
85
        self._report["questions"].extend(message)
86
86
 
87
87
    def report(self):
94
94
        safe_make_directory(cache_directory)
95
95
 
96
96
        file(cache_file, "w").write(payload)
97
 
        self._manager.reactor.fire(("report", "launchpad"), cache_file)
 
97
        self._manager.reactor.fire("exchange-report", cache_file)
98
98
 
99
99
 
100
100
factory = LaunchpadReport