def getPolls(self, context, request): polls = [] for pollId in self.polls: poll = self.getPoll(pollId) if IPortalPoll.providedBy(poll): poll = poll.__bind__(context, request) if poll.isAvailable(): polls.append(poll) return polls