~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/job/interfaces/job.py

merge pcj-requester-bug-810957 branch so that I can now get the PCJ requester and feed it to do_copy for permission checks and correct email processing

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    DBEnumeratedType,
23
23
    DBItem,
24
24
    )
 
25
from lazr.restful.fields import Reference
25
26
from zope.interface import (
26
27
    Attribute,
27
28
    Interface,
35
36
    )
36
37
 
37
38
from canonical.launchpad import _
 
39
from lp.registry.interfaces.person import IPerson
38
40
 
39
41
 
40
42
class SuspendJobException(Exception):
109
111
    max_retries = Int(title=_(
110
112
        'The number of retries permitted before this job permanently fails.'))
111
113
 
 
114
    requester = Reference(
 
115
        IPerson, title=_("The person who requested the job"),
 
116
        required=False, readonly=True
 
117
        )
 
118
 
112
119
    is_pending = Bool(
113
120
        title=_("Whether or not this job's status is such that it "
114
121
                "could eventually complete."))