~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Bryce Harrington
  • Date: 2011-06-30 20:01:25 UTC
  • mto: This revision was merged to the branch mainline in revision 13353.
  • Revision ID: bryce@canonical.com-20110630200125-rpkxch89ti91kamy
Fix typo in message referring to /etc/apt/sources.list

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
        return result_set
295
295
 
296
296
    def search(self, user=None, device=None, driver=None, distribution=None,
297
 
               distroseries=None, architecture=None, owner=None,
298
 
               created_before=None, created_after=None,
299
 
               submitted_before=None, submitted_after=None):
 
297
               distroseries=None, architecture=None, owner=None):
300
298
        """See `IHWSubmissionSet`."""
301
299
        store = getUtility(IStoreSelector).get(MAIN_STORE, DEFAULT_FLAVOR)
302
300
        args = []
332
330
                args.append(DistroArchSeries.distroseries == distroseries.id)
333
331
        if owner is not None:
334
332
            args.append(HWSubmission.owner == owner.id)
335
 
        if created_before is not None:
336
 
            args.append(HWSubmission.date_created <= created_before)
337
 
        if created_after is not None:
338
 
            args.append(HWSubmission.date_created > created_after)
339
 
        if submitted_before is not None:
340
 
            args.append(HWSubmission.date_submitted <= submitted_before)
341
 
        if submitted_after is not None:
342
 
            args.append(HWSubmission.date_submitted > submitted_after)
343
333
 
344
334
        result_set = store.find(
345
335
            HWSubmission,