Part of lp.hardwaredb.interfaces.webservice View In Hierarchy
Method | devices | Return the set of devices. |
Method | drivers | Return the set of drivers. |
Method | vendorIDs | Return the known vendor IDs for the given bus. |
Method | search | Return the submissions matiching the given parmeters. |
Method | numSubmissionsWithDevice | Count the number of submissions mentioning a device or a driver. |
Method | numOwnersOfDevice | The number of people owning a device or using a driver. |
Method | numDevicesInSubmissions | Count how often a device or a driver appears in HWDB submissions. |
Method | deviceDriverOwnersAffectedByBugs | Return persons affected by given bugs and owning a given device. |
Method | hwInfoByBugRelatedUsers | Return a list of owners and devices related to given bugs. |
Inherited from ILaunchpadApplication:
Attribute | title | Title |
Parameters | bus | A HWBus value. |
Returns | A list of strings with vendor IDs fr this bus, |
Only one of :distribution: or :distroseries: may be supplied.
Parameters | user | The IPerson running the query. Private submissions
are returned only if the person running the query is the
owner or an admin. |
device | Limit results to submissions containing this
IHWDevice . | |
driver | Limit results to submissions containing devices
that use this IHWDriver . | |
distribution | Limit results to submissions made for
this IDistribution . | |
distroseries | Limit results to submissions made for
this IDistroSeries . | |
architecture | Limit results to submissions made for a specific architecture. | |
owner | Limit results to submissions from this person. | |
created_before | Exclude results created after this date. | |
created_after | Exclude results created before or on this date. | |
submitted_before | Exclude results submitted after this date. | |
submitted_after | Exclude results submitted before or on this date. |
Returns a dictionary {'submissions_with_device: n1, 'all_submissions': n2}, where submissions_with_device is the number of submissions having the given device or driver and matching the distro target criterion and where all_submissions is the number of submissions matching the distro target criterion.
You may specify at most one of the parameters distribution, distroseries or distroarchseries.
At least each of bus, vendor_id, product_id must not be None or driver_name must not be None.
Parameters | bus | The HWBus of the device (optional). |
vendor_id | The vendor ID of the device (optional). | |
product_id | The product ID of the device (optional). | |
driver_name | The name of the driver used for the device (optional). | |
package_name | The name of the package the driver is a part of. (optional). | |
distribution | Limit the count to submissions made for the given distribution, distroseries or distroarchseries. (optional). | |
distroseries | Limit the count to submissions made for the given distroseries. (optional). | |
distroarchseries | Limit the count to submissions made for the given distroarchseries. (optional). |
Returns a dictionary {'owners': n1, 'all_submitters': n2} where owners is the number of people who made a HWDB submission containing the given device or driver, optionally limited to submissions made for the given distro target. all_submitters is the number of persons who made a HWDB submission, optionally limited to submission made on the given distro target installation.
You may specify at most one of the parameters distribution, distroseries or distroarchseries.
At least each of bus, vendor_id, product_id must not be None or driver_name must not be None.
Parameters | bus | The HWBus of the device (optional). |
vendor_id | The vendor ID of the device (optional). | |
product_id | The product ID of the device (optional). | |
driver_name | The name of the driver used for the device (optional). | |
package_name | The name of the package the driver is a part of. (optional). | |
distribution | Limit the count to submissions made for the given distribution, distroseries or distroarchseries. (optional). | |
distroseries | Limit the count to submissions made for the given distroseries. (optional). | |
distroarchseries | Limit the count to submissions made for the given distroarchseries. (optional). |
You may specify at most one of the parameters distribution, distroseries or distroarchseries.
At least each of bus, vendor_id, product_id must not be None or driver_name must not be None.
Parameters | bus | The HWBus of the device (optional). |
vendor_id | The vendor ID of the device (optional). | |
product_id | The product ID of the device (optional). | |
driver_name | Limit the count to devices controlled by the given driver (optional). | |
package_name | Limit the count to devices controlled by a driver from the given package (optional). | |
distribution | Limit the count to submissions made for the given distribution, distroseries or distroarchseries. (optional). | |
distroseries | Limit the count to submissions made for the given distroseries. (optional). | |
distroarchseries | Limit the count to submissions made for the given distroarchseries. (optional). | |
Returns | The number how often the given device appears in HWDB submissions. |
bug_ids must be a non-empty sequence of bug IDs, or bug_tags must be a non-empty sequence of bug tags.
The parameters bus, vendor_id, product_id must not be None, or driver_name must not be None.
By default, only those persons are returned which have reported a bug matching the given bug conditions.
Owners of private submissions are returned only if user is the owner of the private submission or if user is an admin.
Parameters | bus | The HWBus of the device. |
vendor_id | The vendor ID of the device. | |
product_id | The product ID of the device. | |
driver_name | Limit the search to devices controlled by the given driver. | |
package_name | Limit the search to devices controlled by a driver from the given package. | |
bug_ids | A sequence of bug IDs for which affected are looked up. | |
bug_tags | A sequence of bug tags | |
affected_by_bug | If True, those persons are looked up that have marked themselves as being affected by a one of the bugs matching the bug criteria. | |
subscribed_to_bug | If True, those persons are looked up that are subscribed to a bug matching one of the bug criteria. | |
user | The person making the query. |
Actually returns a list of tuples where the tuple is of the form, (person name, bus name, vendor id, product id).`
Parameters | bug_ids | A sequence of bug IDs for which affected are looked up. |
bug_tags | A sequence of bug tags | |
affected_by_bug | If True, those persons are looked up that have marked themselves as being affected by a one of the bugs matching the bug criteria. | |
subscribed_to_bug | If True, those persons are looked up that are subscribed to a bug matching one of the bug criteria. | |
user | The person making the query. |