~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-25 08:55:37 UTC
  • mfrom: (13287.1.8 bug-800652)
  • Revision ID: launchpad@pqm.canonical.com-20110625085537-moikyoo2pe98zs7r
[r=jcsackett, julian-edwards][bug=800634,
        800652] Enable and display overrides on sync package uploads.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
__all__ = [
13
13
    'IQuestion',
14
14
    'IQuestionSet',
15
 
    'IQuestionSubscription',
16
15
    ]
17
16
 
18
17
from lazr.restful.declarations import LAZR_WEBSERVICE_EXPORTED
19
18
 
 
19
from canonical.launchpad.components.apihelpers import (
 
20
    patch_collection_return_type,
 
21
    patch_entry_return_type,
 
22
    patch_reference_property,
 
23
    )
20
24
from lp.answers.interfaces.question import IQuestion
21
25
from lp.answers.interfaces.questioncollection import (
22
26
    IQuestionSet,
23
27
    ISearchableByQuestionOwner,
24
28
    )
25
 
from lp.answers.interfaces.questionmessage import IQuestionMessage
26
 
from lp.answers.interfaces.questionsperson import IQuestionsPerson
27
 
from lp.answers.interfaces.questionsubscription import IQuestionSubscription
 
29
from lp.answers.interfaces.questionmessage import  IQuestionMessage
 
30
from lp.answers.interfaces.questionsperson import  IQuestionsPerson
28
31
from lp.answers.interfaces.questiontarget import IQuestionTarget
29
 
from lp.services.webservice.apihelpers import (
30
 
    patch_collection_return_type,
31
 
    patch_entry_return_type,
32
 
    patch_reference_property,
33
 
    )
34
32
 
35
33
 
36
34
IQuestionSet.queryTaggedValue(
41
39
patch_collection_return_type(
42
40
    ISearchableByQuestionOwner, 'searchQuestions', IQuestion)
43
41
patch_reference_property(IQuestionMessage, 'question', IQuestion)
44
 
patch_reference_property(IQuestionSubscription, 'question', IQuestion)
45
42
patch_collection_return_type(
46
43
    IQuestionsPerson, 'getDirectAnswerQuestionTargets', IQuestionTarget)
47
44
patch_collection_return_type(