~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/hardwaredb/browser/hwdb.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-16 20:38:35 UTC
  • mfrom: (13686.2.17 useoops)
  • Revision ID: launchpad@pqm.canonical.com-20110816203835-4q78rt0xz6zzuyka
[r=gmb][no-qa] More oops extraction. New deps oops-0.0.5
 oops-datedir-repo-0.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        missing_fields = expected_fields.difference(submitted_fields)
70
70
        if len(missing_fields) > 0:
71
71
            missing_fields = ', '.join(sorted(missing_fields))
72
 
            info = (HWSubmissionMissingFields,
73
 
                    'Missing form fields: %s' % missing_fields, None)
74
 
            errorUtility = getUtility(IErrorReportingUtility)
75
 
            errorUtility.handling(info, self.request)
76
72
            self.addCustomHeader(
77
73
                'Error: Required fields not contained in POST data: '
78
74
                + missing_fields)