l.h.i.h.IHWSubmissionDeviceSet(Interface) : interface documentation

Part of lp.hardwaredb.interfaces.hwdb View In Hierarchy

The set of IHWSubmissionDevices.
Method create Create a new IHWSubmissionDevice instance.
Method getDevices Return the IHWSubmissionDevice records of a submission
Method get Return an IHWSubmissionDevice record with the given database ID.
Method numDevicesInSubmissions Count how often a device or a driver appears in HWDB submissions.
def create(device_driver_link, submission, parent):
Create a new IHWSubmissionDevice instance.
Parametersdevice_driver_linkAn IHWDeviceDriverLink instance.
submissionThe submission the device/driver combination is mentioned in.
parentThe parent of this device in the device tree in the submission.
ReturnsThe new IHWSubmissionDevice instance.
def getDevices(submission):
Return the IHWSubmissionDevice records of a submission
ParameterssubmissionAn IHWSubmission instance.
ReturnsA sequence of IHWSubmissionDevice records.
def get(id):
Return an IHWSubmissionDevice record with the given database ID.
ParametersidThe database ID.
ReturnsAn IHWSubmissionDevice instance.
def numDevicesInSubmissions(bus=None, vendor_id=None, product_id=None, driver_name=None, package_name=None, distro_target=None):
Count how often a device or a driver appears in HWDB submissions.

At least each of bus, vendor_id, product_id must not be None or driver_name must not be None.

ParametersbusThe HWBus of the device (optional).
vendor_idThe vendor ID of the device (optional).
product_idThe product ID of the device (optional).
driver_nameLimit the count to devices controlled by the given driver (optional).
package_nameLimit the count to devices controlled by a driver from the given package (optional).
distro_targetLimit the count to devices appearing in HWDB submissions made for the given distribution, distroseries or distroarchseries (optional).
ReturnsThe number how often the given device appears in HWDB submissions.
API Documentation for Launchpad, generated by pydoctor at 2019-10-20 00:00:13.