def getTeamAnswerQuestionTargets(self): """See `IQuestionsPerson`.""" answer_contacts = AnswerContact.select( '''AnswerContact.person = TeamParticipation.team AND TeamParticipation.person = %(personID)s AND AnswerContact.person != %(personID)s''' % sqlvalues( personID=self.id), clauseTables=['TeamParticipation'], distinct=True) return self._getQuestionTargetsFromAnswerContacts(answer_contacts)
def getTeamAnswerQuestionTargets(self): """See `IQuestionsPerson`.""" answer_contacts = AnswerContact.select( '''AnswerContact.person = TeamParticipation.team AND TeamParticipation.person = %(personID)s AND AnswerContact.person != %(personID)s''' % sqlvalues(personID=self.id), clauseTables=['TeamParticipation'], distinct=True) return self._getQuestionTargetsFromAnswerContacts(answer_contacts)
def getDirectAnswerQuestionTargets(self): """See `IQuestionsPerson`.""" answer_contacts = AnswerContact.select('person = %s' % sqlvalues(self)) return self._getQuestionTargetsFromAnswerContacts(answer_contacts)
def getDirectAnswerQuestionTargets(self): """See `IQuestionsPerson`.""" answer_contacts = AnswerContact.select( 'person = %s' % sqlvalues(self)) return self._getQuestionTargetsFromAnswerContacts(answer_contacts)