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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)