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

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

Known subclasses: lp.answers.interfaces.questiontarget.IQuestionTargetPublic

Collection that support searching by question owner.
Method searchQuestions Return the questions from the collection matching search criteria.

Inherited from IQuestionCollection:

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')), PublicPersonChoice(_('Owner'), False, 'ValidPerson'), PublicPersonChoice(_('Needs attentions from'), False, 'ValidPerson'), 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, owner=None, needs_attention_from=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. The default is to match all status except Expired and Invalid.
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.
ownerThe IPerson that created the question.
needs_attention_fromSelects questions that need attention from an IPerson. These are the questions in the NEEDSINFO or ANSWERED state owned by the person. The questions not owned by the person but on which the person requested more information or gave an answer and that are back in the OPEN state are also included.
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.
API Documentation for Launchpad, generated by pydoctor at 2020-10-27 00:00:07.