~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-08-18 20:56:37 UTC
  • mto: This revision was merged to the branch mainline in revision 13736.
  • Revision ID: curtis.hovey@canonical.com-20110818205637-ae0pf9aexdea2mlb
Cleaned up doctrings and hushed lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
# pylint: disable-msg=E0211,E0213
964
964
        matches.
965
965
        """
966
966
 
967
 
    def getByID(id):
 
967
    def getByID(self, id):
968
968
        """Return an IHWDevice record with the given database ID.
969
969
 
970
970
        :param id: The database ID.
1283
1283
            required=False),
1284
1284
        architecture=TextLine(
1285
1285
            title=u'A processor architecture',
1286
 
            description=(
 
1286
            description=
1287
1287
                u'If specified, the result set is limited to sumbissions '
1288
 
                'made for a specific architecture.'),
 
1288
                'made for a specific architecture.',
1289
1289
            required=False),
1290
1290
        owner=Reference(
1291
1291
            IPerson,
1292
1292
            title=u'Person',
1293
 
            description=(
 
1293
            description=
1294
1294
                u'If specified, the result set is limited to sumbissions '
1295
 
                'from this person.'),
 
1295
                'from this person.',
1296
1296
            required=False),
1297
1297
        created_before=Datetime(
1298
1298
            title=u'Created Before',
1299
 
            description=(
1300
 
                u'If specified, exclude results created after this date.'),
 
1299
            description=
 
1300
                u'If specified, exclude results created after this date.',
1301
1301
            required=False),
1302
1302
        created_after=Datetime(
1303
1303
            title=u'Created After',
1304
 
            description=(
 
1304
            description=
1305
1305
                u'If specified, exclude results created before or on '
1306
 
                'this date.'),
 
1306
                'this date.',
1307
1307
            required=False),
1308
1308
        submitted_before=Datetime(
1309
1309
            title=u'Created Before',
1310
 
            description=(
1311
 
                u'If specified, exclude results submitted after this date.'),
 
1310
            description=
 
1311
                u'If specified, exclude results submitted after this date.',
1312
1312
            required=False),
1313
1313
        submitted_after=Datetime(
1314
1314
            title=u'Created After',
1315
 
            description=(
 
1315
            description=
1316
1316
                u'If specified, Exclude results submitted before or on '
1317
 
                'this date.'),
 
1317
                'this date.',
1318
1318
            required=False))
1319
1319
    @call_with(user=REQUEST_USER)
1320
1320
    @operation_returns_collection_of(IHWSubmission)