10466.9.5
by Jeroen Vermeulen
Prototype with weird timezone-related test failure in test_min_time_to_next_builder. |
1 |
# Copyright 2010 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
3 |
||
4 |
"""Interface to support UI for most build-farm jobs."""
|
|
5 |
||
6 |
__metaclass__ = type |
|
7 |
__all__ = [ |
|
8 |
'IBuildFarmBuildJob'
|
|
9 |
]
|
|
10 |
||
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
11 |
from lazr.restful.fields import Reference |
12 |
||
10466.9.5
by Jeroen Vermeulen
Prototype with weird timezone-related test failure in test_min_time_to_next_builder. |
13 |
from canonical.launchpad import _ |
7675.687.43
by Michael Nelson
Cleaned up the interfaces so that the old in-memory BuildFarmJob interfaces stay intact until they are removed, rather than merging them with the new. |
14 |
from lp.buildmaster.interfaces.buildfarmjob import IBuildFarmJobOld |
10667.2.2
by Michael Nelson
Mass renaming of imports and references to IBuild/Build/IBuildSet |
15 |
from lp.soyuz.interfaces.binarypackagebuild import IBinaryPackageBuild |
10466.9.5
by Jeroen Vermeulen
Prototype with weird timezone-related test failure in test_min_time_to_next_builder. |
16 |
|
17 |
||
7675.687.43
by Michael Nelson
Cleaned up the interfaces so that the old in-memory BuildFarmJob interfaces stay intact until they are removed, rather than merging them with the new. |
18 |
class IBuildFarmBuildJob(IBuildFarmJobOld): |
10466.9.5
by Jeroen Vermeulen
Prototype with weird timezone-related test failure in test_min_time_to_next_builder. |
19 |
"""An `IBuildFarmJob` with an `IBuild` reference."""
|
20 |
build = Reference( |
|
10667.2.2
by Michael Nelson
Mass renaming of imports and references to IBuild/Build/IBuildSet |
21 |
IBinaryPackageBuild, title=_("Build"), required=True, readonly=True, |
10466.9.5
by Jeroen Vermeulen
Prototype with weird timezone-related test failure in test_min_time_to_next_builder. |
22 |
description=_("Build record associated with this job.")) |