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

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

Known subclasses: lp.registry.interfaces.person.IPersonViewRestricted

No interface docstring
Method getDirectAnswerQuestionTargets Return a list of IQuestionTargets that a person is subscribed to.
Method getTeamAnswerQuestionTargets Return a list of IQuestionTargets that are indirect subscriptions.
Method searchQuestions Search the person's questions.

Inherited from IQuestionCollection:

Method getQuestionLanguages Return the set of ILanguage used by all the questions in the
@operation_returns_collection_of(Interface)
@export_read_operation()
@operation_for_version('devel')
def getDirectAnswerQuestionTargets():
Return a list of IQuestionTargets that a person is subscribed to.

This will return IQuestionTargets that the person is registered as an answer contact because they subscribed themselves.

@operation_returns_collection_of(Interface)
@export_read_operation()
@operation_for_version('devel')
def getTeamAnswerQuestionTargets():
Return a list of IQuestionTargets that are indirect subscriptions.

This will return IQuestionTargets that the person or team is registered as an answer contact because of their membership in a team.

@operation_parameters(TextLine(_('Search text'), False), List(_('Status'), False, Choice(QuestionStatus)), List(_('Language'), False, ReferenceChoice('Language')), Choice(_('Participation'), False, QuestionParticipation), Bool(_('Needs attentions from'), False, False), 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, participation=None, needs_attention=None):
Search the person's questions.
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.
participationA list of QuestionParticipation that defines the set of relationship to questions that will be searched. If None or an empty sequence, all relationships are considered.
needs_attentionIf this flag is true, only questions that need attention the person will be included. 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 2019-10-20 00:00:13.