~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

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

  • Committer: Marc Tardif
  • Date: 2012-03-21 22:32:04 UTC
  • Revision ID: marc.tardif@canonical.com-20120321223204-8g7mvzzwmh8ifbrt
Added support for getting systems from a person (LP #899361)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    ITestPersonSet,
36
36
    TestPersonSearchParams,
37
37
    )
 
38
from lpresults.tracker.models.testrank import HasTestRankSystemsMixin
38
39
from lpresults.tracker.models.teststat import (
39
40
    HasTestStatPeopleMixin,
40
41
    TestStat,
43
44
from lpresults.tracker.models.teststore import get_test_stores
44
45
 
45
46
 
46
 
class TestPerson(TestStatPerson):
 
47
class TestPerson(TestStatPerson, HasTestRankSystemsMixin):
47
48
    """See `ITestPerson`."""
48
49
    implements(ITestPerson)
49
50
    delegates(IPerson)
50
51
 
 
52
    def updateTestRankParams(self, params):
 
53
        params.setPerson(self)
 
54
 
51
55
 
52
56
class TestPersonSet(PersonSet, HasTestStatPeopleMixin):
53
57
    """See `ITestPersonSet`."""