~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/interfaces/sourcepackagerecipebuild.py

Merged recipe-collection into buildqueue-creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
from lazr.restful.fields import Reference
15
15
 
16
 
from zope.interface import Interface
 
16
from zope.interface import Attribute, Interface
17
17
from zope.schema import Choice, Datetime, Int, Object, Timedelta
18
18
 
19
19
from canonical.launchpad import _
24
24
from lp.buildmaster.interfaces.buildfarmjob import IBuildFarmJob
25
25
from lp.registry.interfaces.person import IPerson
26
26
from lp.registry.interfaces.distroseries import IDistroSeries
 
27
from lp.registry.interfaces.pocket import PackagePublishingPocket
27
28
from lp.registry.interfaces.sourcepackagename import ISourcePackageName
28
29
from lp.services.job.interfaces.job import IJob
29
30
from lp.soyuz.interfaces.archive import IArchive
36
37
 
37
38
    id = Int(title=_("Identifier for this build."))
38
39
 
 
40
    current_component = Attribute(
 
41
        "Component where the source related to this build was last "
 
42
        "published.")
 
43
 
39
44
    date_created = Datetime(required=True, readonly=True)
40
45
 
41
46
    distroseries = Reference(
80
85
                      "is dispatched the first time and not changed in "
81
86
                      "subsequent build attempts."))
82
87
 
 
88
    pocket = Choice(
 
89
            title=_('Pocket'), required=True,
 
90
            vocabulary=PackagePublishingPocket,
 
91
            description=_("The build targeted pocket."))
 
92
 
83
93
    requester = Object(
84
94
        schema=IPerson, required=False,
85
95
        title=_("The person who wants this to be done."))