~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/interfaces/questionjob.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-03 11:23:34 UTC
  • mfrom: (13457.6.16 upgrade-stderr)
  • Revision ID: launchpad@pqm.canonical.com-20110803112334-acnupsa7jmzmdeet
[r=stevenk][bug=819751] Fix the implementation of several methods in
 LoggingUIFactory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    'IQuestionEmailJobSource',
11
11
    ]
12
12
 
13
 
from zope.interface import (
14
 
    Attribute,
15
 
    Interface,
16
 
    )
 
13
from zope.interface import Attribute
17
14
from zope.schema import (
18
15
    Choice,
19
16
    Field,
21
18
    Object,
22
19
    )
23
20
 
24
 
from lp import _
 
21
from canonical.launchpad import _
25
22
from lp.answers.enums import QuestionJobType
26
23
from lp.services.job.interfaces.job import (
27
24
    IJob,
30
27
    )
31
28
 
32
29
 
33
 
class IQuestionJob(Interface):
 
30
class IQuestionJob(IRunnableJob):
34
31
    """A Job related to a question."""
35
32
 
36
33
    id = Int(
52
49
    metadata = Attribute('A dict of data about the job.')
53
50
 
54
51
 
55
 
class IQuestionEmailJob(IQuestionJob, IRunnableJob):
 
52
class IQuestionEmailJob(IQuestionJob):
56
53
 
57
54
    user = Attribute('The `IPerson` who triggered the email.')
58
55