~gmb/tarmac/handle-unicode-test-output-properly

« back to all changes in this revision

Viewing changes to tarmac/plugins/allowedcontributors.py

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2011-10-28 21:03:37 UTC
  • mfrom: (395.2.1 contrib-str-compare)
  • Revision ID: tarmac-20111028210337-l7tz6c5i75lofhgp
Use str(object) values to compare person and team from LP

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
    def is_in_team(self, person, team):
98
98
        """Check that a person is a member of team, or one of its subteams."""
99
99
        for subteam in team.members:
100
 
            if subteam == person:
 
100
            if str(subteam) == str(person):
101
101
                return True
102
102
            if subteam.is_team and self.is_in_team(person, subteam):
103
103
                return True