~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/hardware/models/systemunit.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:
31
31
    DeviceState,
32
32
    DeviceStateTargetMixin,
33
33
    )
 
34
from lpresults.hardware.models.store import get_hardware_store
34
35
from lpresults.hardware.models.system import System
35
36
from lpresults.hardware.models.unit import (
36
37
    Unit,
80
81
        """See `IUnitSet`."""
81
82
        return SystemUnit(self.target, identifiers)
82
83
 
 
84
    def get(self, id):
 
85
        """See `ISeriesSet`."""
 
86
        return get_hardware_store().get(SystemUnit, id)
 
87
 
83
88
    def buildSearchExpressions(self, search_params):
84
89
        """See SearchSet."""
85
90
        expressions = super(SystemUnitSet, self).buildSearchExpressions(