l.a.m.q.QuestionTargetMixin : class documentation

Part of lp.answers.model.question View In Hierarchy

Known subclasses: lp.registry.model.distribution.Distribution, lp.registry.model.product.Product, lp.registry.model.sourcepackage.SourcePackageQuestionTargetMixin

Mixin class for IQuestionTarget.
Method getTargetTypes Return a Dict of QuestionTargets representing this object.
Method newQuestion See IQuestionTarget.
Method createQuestionFromBug See IQuestionTarget.
Method getQuestion See IQuestionTarget.
Method questionIsForTarget Verify that this question is actually for this target.
Method findSimilarQuestions See IQuestionTarget.
Method getQuestionLanguages See IQuestionTarget.
Method answer_contacts See IQuestionTarget.
Method answer_contacts_with_languages Answer contacts with their languages pre-filled.
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 getAnswerContactsForLanguage See IQuestionTarget.
Method getAnswerContactRecipients See IQuestionTarget.
Method removeAnswerContact See IQuestionTarget.
Method getSupportedLanguages See IQuestionTarget.
Method _store Undocumented
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):
Return a Dict of QuestionTargets representing this object.
Returnsa Dict with product, distribution, and sourcepackagename as possible keys. Each value is a valid QuestionTarget or None.
def newQuestion(self, owner, title, description, language=None, datecreated=None):
See IQuestionTarget.
def createQuestionFromBug(self, bug):
See IQuestionTarget.
def getQuestion(self, question_id):
See IQuestionTarget.
def questionIsForTarget(self, question):
Verify that this question is actually for this target.
def findSimilarQuestions(self, phrase):
See IQuestionTarget.
def getQuestionLanguages(self):
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 of them having its languages pre-filled so that we don't need to hit the DB again to get them.

def _getConditionsToQueryAnswerContacts(self):
The SQL conditions to query this target's answer contacts.
@property
def direct_answer_contacts(self):
See IQuestionTarget.
@property
def direct_answer_contacts_with_languages(self):
Direct answer contacts with their languages pre-filled.

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

def canUserAlterAnswerContact(self, person, subscribed_by):
See IQuestionTarget.
def addAnswerContact(self, person, subscribed_by):
See IQuestionTarget.
def _selectPersonFromAnswerContacts(self, constraints, clause_tables):
Return the Persons or Teams who are AnswerContacts.
def getAnswerContactsForLanguage(self, language):
See IQuestionTarget.
def getAnswerContactRecipients(self, language):
See IQuestionTarget.
def removeAnswerContact(self, person, subscribed_by):
See IQuestionTarget.
def getSupportedLanguages(self):
See IQuestionTarget.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.