~bnrubin/+junk/lpteam

« back to all changes in this revision

Viewing changes to lpteam.py

  • Committer: Benjamin Rubin
  • Date: 2009-12-08 18:26:39 UTC
  • Revision ID: bnrubin@ubuntu.com-20091208182639-mw0b7191em5xh813
- Will now properly detect if user is a member of a subteam of ubuntumembers

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    team = launchpad.people[teamname]
33
33
    member = launchpad.people[membername]
34
34
 
35
 
    if 'ubuntumembers' in  [e.team.name for e in member.memberships_details]:
 
35
    if 'ubuntumembers' in  [e.name for e in member.super_teams]:
36
36
        print "'%s' (%s) is an Ubuntu Member" % (member.display_name,membername)
37
37
        print "Attempting to add '%s' (%s) to '%s' (%s)..." % (member.display_name,membername,team.display_name,teamname)
38
38