~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-05-14 15:46:33 UTC
  • mto: This revision was merged to the branch mainline in revision 13055.
  • Revision ID: curtis.hovey@canonical.com-20110514154633-yxf4wlcl1wzcwiau
Reverted QUESTION_STATUS_DEFAULT_SEARCH to a tuple.
Casted QUESTION_STATUS_DEFAULT_SEARCH to a list in the method definition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
    @export_read_operation()
101
101
    @operation_for_version('devel')
102
102
    def searchQuestions(search_text=None,
103
 
                        status=QUESTION_STATUS_DEFAULT_SEARCH,
 
103
                        status=list(QUESTION_STATUS_DEFAULT_SEARCH),
104
104
                        language=None, sort=None, owner=None,
105
105
                        needs_attention_from=None):
106
106
        """Return the questions from the collection matching search criteria.