~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/hardware/models/deviceproduct.py

  • Committer: Marc Tardif
  • Date: 2011-09-14 01:25:40 UTC
  • Revision ID: marc.tardif@canonical.com-20110914012540-1gs255vhv6kb0mg4
Added updating of submissions periodically.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
            "SELECT set_device_product(?, ?, ?, ?)",
69
69
            (name, bus_id, product_id, vendor_id,),
70
70
            noresult=True)
 
71
 
 
72
    def setSubproduct(
 
73
        self, name, product_id, vendor_id, subproduct_id, subvendor_id):
 
74
        """See `IDeviceProductTarget`."""
 
75
        return get_hardware_store().execute(
 
76
            "SELECT set_device_subproduct(?, ?, ?, ?, ?)",
 
77
            (name, product_id, vendor_id, subproduct_id, subvendor_id,),
 
78
            noresult=True)