def getAnswerContactRecipients(self, language): """See `IQuestionTarget`.""" # We need to special case the source package case because some are # contacts for the distro while others are only registered for the # package. And we also want the name of the package in context in # the header. recipients = self.distribution.getAnswerContactRecipients(language) recipients.update( QuestionTargetMixin.getAnswerContactRecipients(self, language)) return recipients
def getAnswerContactsForLanguage(self, language): """See `IQuestionTarget`.""" # Sourcepackages are supported by their distribtions too. persons = set(self.distribution.getAnswerContactsForLanguage(language)) persons.update( set( QuestionTargetMixin.getAnswerContactsForLanguage( self, language))) return sorted([person for person in persons], key=attrgetter('displayname'))