l.a.i.q.IQuestionCollection(Interface) : interface documentation

Part of lp.answers.interfaces.questioncollection View In Hierarchy

Known subclasses: lp.answers.interfaces.questioncollection.ISearchableByQuestionOwner, lp.answers.interfaces.questionsperson.IQuestionsPerson, lp.answers.interfaces.webservice.IQuestionSet

An object that can be used to search through a collection of questions.
Method searchQuestions Return the questions from the collection matching search criteria.
Method getQuestionLanguages Return the set of ILanguage used by all the questions in the
@operation_parameters(TextLine(_('Search text'), False), List(_('Status'), False, Choice(QuestionStatus)), List(_('Language'), False, ReferenceChoice('Language')), Choice(_('Sort'), False, QuestionSort))
@operation_returns_collection_of(Interface)
@export_read_operation()
@operation_for_version('devel')
def searchQuestions(search_text=None, status=list(QUESTION_STATUS_DEFAULT_SEARCH), language=None, sort=None):
Return the questions from the collection matching search criteria.
Parameterssearch_textA string that is matched against the question title and description. If None, the search_text is not included as a filter criteria.
statusA sequence of QuestionStatus Items. If None or an empty sequence, the status is not included as a filter criteria.
languageAn ILanguage or a sequence of ILanguage objects to match against the question's language. If None or an empty sequence, the language is not included as a filter criteria.
sortAn attribute of QuestionSort. If None, a default value is used. When there is a search_text value, the default is to sort by RELEVANCY, otherwise results are sorted NEWEST_FIRST.
def getQuestionLanguages():
Return the set of ILanguage used by all the questions in the collection.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.