~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-17 01:49:32 UTC
  • mfrom: (13041.2.27 answers-api-2)
  • Revision ID: launchpad@pqm.canonical.com-20110517014932-d97eobi9byvedefn
[r=benji][bug=782093] Export IQuestionCollection methods and
        IQuestionMessage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        If there is no such question number for this target, return None
64
64
        """
65
65
 
66
 
    def findSimilarQuestions(title):
67
 
        """Return questions similar to title.
 
66
    @operation_parameters(
 
67
        phrase=TextLine(title=_('A phrase'), required=True))
 
68
    @operation_returns_collection_of(Interface)
 
69
    @export_read_operation()
 
70
    @operation_for_version('devel')
 
71
    def findSimilarQuestions(phrase):
 
72
        """Return questions similar to phrase.
68
73
 
69
 
        Return a list of question similar to the title provided. These
70
 
        questions should be found using a fuzzy search. The list should be
 
74
        Return a list of question similar to the provided phrase. These
 
75
        questions will be found using a fuzzy search. The list is
71
76
        ordered from the most similar question to the least similar question.
72
77
 
73
 
        :title: A phrase
 
78
        :param phrase: A phrase such as the summary of a question.
74
79
        """
75
80
 
76
81
    @operation_parameters(