def _getByName(self, name): team = ITeam(self.context, None) if team is None: team = self.context.team return getUtility(IPollSet).getByTeamAndName(team, name)