~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/tracker/models/testsystem.py

  • Committer: Marc Tardif
  • Date: 2011-08-29 09:15:02 UTC
  • Revision ID: marc.tardif@canonical.com-20110829091502-sfl5mwynurpuko1j
Added device states for system units.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
from lpresults.database.datetime import UTCDateTimeAlias
23
23
from lpresults.database.search import search_to_expression
24
24
 
25
 
from lpresults.registry.formatters import item_to_tuple
 
25
from lpresults.services.formatters import item_to_tuple
26
26
 
27
27
from lpresults.hardware.interfaces.system import ISystem
28
28
from lpresults.hardware.models.system import (
61
61
 
62
62
    entry_type = ITestSystemSet
63
63
 
64
 
    def get(self, id):
 
64
    def getById(self, id):
65
65
        """See `ISystemSet`."""
66
66
        search_params = self.search_params_factory(id=id)
67
67
        return self.search(search_params).one()