~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/repository/result.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:
13
13
 
14
14
class Result:
15
15
 
 
16
    date_started = None
 
17
    date_stopped = None
 
18
 
16
19
    def __init__(self, source):
17
20
        self.source = source
18
21
 
19
22
    def start(self):
20
23
        """A result start command received."""
21
 
        self.date_modified = datetime.now(tz=utc)
 
24
        self.date_started = datetime.now(tz=utc)
22
25
 
23
26
    def stop(self):
24
27
        """A result stop command received."""
25
 
        pass
 
28
        self.date_stopped = datetime.now(tz=utc)