458
462
title=u'License of the Driver', required=False,
459
463
vocabulary=License))
460
465
@operation_parameters(
461
466
distribution=Reference(
463
468
title=u'A Distribution',
465
470
u'If specified, the result set is limited to sumbissions '
466
'made for the given distribution.',
471
'made for the given distribution.'),
468
473
distroseries=Reference(
470
475
title=u'A Distribution Series',
472
477
u'If specified, the result set is limited to sumbissions '
473
'made for the given distribution series.',
478
'made for the given distribution series.'),
475
architecture = TextLine(
480
architecture=TextLine(
476
481
title=u'A processor architecture',
478
483
u'If specified, the result set is limited to sumbissions '
479
'made for the given architecture.',
484
'made for the given architecture.'),
481
owner = copy_field(IHWSubmission['owner']))
486
owner=copy_field(IHWSubmission['owner']))
482
487
@operation_returns_collection_of(IHWSubmission)
483
488
@export_read_operation()
484
489
def getSubmissions(distribution=None, distroseries=None,
814
819
driver=Reference(
816
821
title=u'A driver used for this device in a submission',
818
823
u'If specified, the result set is limited to sumbissions '
819
824
'made for the given distribution, distroseries or '
825
'distroarchseries.'),
822
827
distribution=Reference(
824
829
title=u'A Distribution',
826
831
u'If specified, the result set is limited to sumbissions '
827
'made for the given distribution.',
832
'made for the given distribution.'),
829
834
distroseries=Reference(
831
836
title=u'A Distribution Series',
833
838
u'If specified, the result set is limited to sumbissions '
834
'made for the given distribution series.',
839
'made for the given distribution series.'),
836
architecture = TextLine(
841
architecture=TextLine(
837
842
title=u'A processor architecture',
839
u'If specified, the result set is limited to sumbissions '
840
'made for the given architecture.',
844
u'If specified, the result set is limited to submissions '
845
'made for the given architecture.'),
842
owner = copy_field(IHWSubmission['owner']))
847
owner=copy_field(IHWSubmission['owner']))
843
848
@operation_returns_collection_of(IHWSubmission)
844
849
@export_read_operation()
845
850
def getSubmissions(driver=None, distribution=None,
1191
1196
package_name=TextLine(
1192
1197
title=u'The name of the package containing the driver.',
1193
1198
required=False,
1195
1200
u'If package_name is omitted, all driver records '
1196
1201
'returned, optionally limited to those matching the '
1197
1202
'parameter name. If package_name is '' (empty string), '
1198
1203
'those records are returned where package_name is '' or '
1201
1206
title=u'The name of the driver.', required=False,
1203
1208
u'If name is omitted, all driver records are '
1204
1209
'returned, optionally limited to those matching the '
1205
'parameter package_name.'))
1210
'parameter package_name.')))
1206
1211
@operation_returns_collection_of(IHWDriver)
1207
1212
@export_read_operation()
1208
1213
def drivers(package_name=None, name=None):
1223
1228
driver_names = exported(
1224
1229
CollectionField(
1225
1230
title=u'Driver Names',
1227
u'All known distinct driver names appearing in HWDriver',
1232
u'All known distinct driver names appearing in HWDriver'),
1228
1233
value_type=Reference(schema=IHWDriverName),
1229
1234
readonly=True))
1231
1236
package_names = exported(
1232
1237
CollectionField(
1233
1238
title=u'Package Names',
1235
u'All known distinct package names appearing in HWDriver.',
1240
u'All known distinct package names appearing in '
1236
1242
value_type=Reference(schema=IHWDriverPackageName),
1237
1243
readonly=True))