l.r.m.s.SourcePackageQuestionTargetMixin(QuestionTargetMixin) : class documentation

Part of lp.registry.model.sourcepackage View In Hierarchy

Known subclasses: lp.registry.model.distributionsourcepackage.DistributionSourcePackage

Implementation of IQuestionTarget for SourcePackage.
Method getTargetTypes See QuestionTargetMixin.
Method questionIsForTarget See QuestionTargetMixin.
Method searchQuestions See IQuestionCollection.
Method getAnswerContactsForLanguage See IQuestionTarget.
Method getAnswerContactRecipients See IQuestionTarget.
Method answer_contacts See IQuestionTarget.
Method answer_contacts_with_languages Answer contacts with their languages pre-filled.
Method owner Undocumented
Method _store Undocumented

Inherited from QuestionTargetMixin:

Method newQuestion See IQuestionTarget.
Method createQuestionFromBug See IQuestionTarget.
Method getQuestion See IQuestionTarget.
Method findSimilarQuestions See IQuestionTarget.
Method getQuestionLanguages See IQuestionTarget.
Method direct_answer_contacts See IQuestionTarget.
Method direct_answer_contacts_with_languages Direct answer contacts with their languages pre-filled.
Method canUserAlterAnswerContact See IQuestionTarget.
Method addAnswerContact See IQuestionTarget.
Method removeAnswerContact See IQuestionTarget.
Method getSupportedLanguages See IQuestionTarget.
Method _getConditionsToQueryAnswerContacts The SQL conditions to query this target's answer contacts.
Method _selectPersonFromAnswerContacts Return the Persons or Teams who are AnswerContacts.
def getTargetTypes(self):
See QuestionTargetMixin.

Defines distribution and sourcepackagename as this object's distribution and sourcepackagename.

def questionIsForTarget(self, question):
See QuestionTargetMixin.

Return True when the question's distribution and sourcepackagename are this object's distribution and sourcepackagename.

def searchQuestions(self, search_text=None, status=QUESTION_STATUS_DEFAULT_SEARCH, language=None, sort=None, owner=None, needs_attention_from=None, unsupported=False):
See IQuestionCollection.
def getAnswerContactsForLanguage(self, language):
See IQuestionTarget.
def getAnswerContactRecipients(self, language):
See IQuestionTarget.
@property
def _store(self):
Undocumented
@property
def answer_contacts(self):
See IQuestionTarget.
@property
def answer_contacts_with_languages(self):
Answer contacts with their languages pre-filled.

Same as answer_contacts but with each answer contact having its languages pre-filled so that we don't need to hit the DB again to get them.

@property
def owner(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.