l.h.m.hwdb : module documentation

Part of lp.hardwaredb.model

Hardware database related table classes.
Class HWSubmission See IHWSubmission.
Class HWSubmissionSet See IHWSubmissionSet.
Class HWSystemFingerprint Identifiers of a computer system.
Class HWSystemFingerprintSet A set of identifiers of a computer system.
Class HWVendorName See IHWVendorName.
Class HWVendorNameSet See IHWVendorNameSet.
Function isValidVendorID Check that the string id is a valid vendor ID for this bus.
Function isValidProductID Check that the string id is a valid product for this bus.
Class HWVendorID See IHWVendorID.
Class HWVendorIDSet See IHWVendorIDSet.
Class HWDevice See IHWDevice.
Class HWDeviceSet See IHWDeviceSet.
Class HWDeviceNameVariant See IHWDeviceNameVariant.
Class HWDeviceNameVariantSet See IHWDeviceNameVariantSet.
Class HWDriver See IHWDriver.
Class HWDriverSet See IHWDriver.
Class HWDriverName See IHWDriverName.
Class HWDriverPackageName See IHWDriverPackageName.
Class HWDeviceDriverLink See IHWDeviceDriverLink.
Class HWDeviceDriverLinkSet See IHWDeviceDriverLinkSet.
Class HWDeviceClass See IHWDeviceClass.
Class HWDeviceClassSet See IHWDeviceClassSet.
Class HWSubmissionDevice See IHWSubmissionDevice.
Class HWSubmissionDeviceSet See IHWSubmissionDeviceSet.
Class HWSubmissionBug See IHWSubmissionBug.
Class HWSubmissionBugSet See IHWSubmissionBugSet.
Function make_submission_device_statistics_clause Create a where expression and a table list for selecting devices.
Function make_distro_target_clause Create a where expression and a table list to limit results to a
Function _userCanAccessSubmissionStormClause Limit results of HWSubmission queries to rows the user can access.
def isValidVendorID(bus, id):
Check that the string id is a valid vendor ID for this bus.

Some busses have constraints for IDs, while some can use arbitrary values, for example the "fake" busses HWBus.SYSTEM and HWBus.SERIAL.

We use a hexadecimal representation of integers like "0x123abc", i.e., the numbers have the prefix "0x"; for the digits > 9 we use the lower case characters a to f.

USB and PCI IDs have always four digits; IEEE1394 IDs have always six digits.

SCSI vendor IDs consist of eight bytes of ASCII data (0x20..0x7e); if a vendor name has less than eight characters, it is padded on the right with spaces (See http://t10.org/ftp/t10/drafts/spc4/spc4r14.pdf, page 45).

ParametersbusA HWBus indicating the bus type of "id"
idA string with the ID
ReturnsTrue, if id is valid, otherwise False
def isValidProductID(bus, id):
Check that the string id is a valid product for this bus.

Some busses have constraints for IDs, while some can use arbitrary values, for example the "fake" busses HWBus.SYSTEM and HWBus.SERIAL.

We use a hexadecimal representation of integers like "0x123abc", i.e., the numbers have the prefix "0x"; for the digits > 9 we use the lower case characters a to f.

USB and PCI IDs have always four digits.

Since IEEE1394 does not specify product IDs, there is no formal check of them.

SCSI product IDs consist of 16 bytes of ASCII data (0x20..0x7e); if a product name has less than 16 characters, it is padded on the right with spaces.

ParametersbusA HWBus indicating the bus type of "id"
idA string with the ID
ReturnsTrue, if id is valid, otherwise False
def make_submission_device_statistics_clause(bus, vendor_id, product_id, driver_name, package_name, device_ids_required):
Create a where expression and a table list for selecting devices.
def make_distro_target_clause(distro_target):
Create a where expression and a table list to limit results to a distro target.
def _userCanAccessSubmissionStormClause(user):
Limit results of HWSubmission queries to rows the user can access.
API Documentation for Launchpad, generated by pydoctor at 2018-11-18 00:00:05.