~yasumoto7/five-a-day/icon_countdown

« back to all changes in this revision

Viewing changes to 5-a-day

  • Committer: Daniel Holbach
  • Date: 2008-06-20 10:01:11 UTC
  • Revision ID: daniel.holbach@canonical.com-20080620100111-kxbixg3z148ezd2l
use lpteams to find out if user IS in a team, add convenience functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        files.modify_tags(args)
36
36
 
37
37
    if args[0] in ["--add-team", "--remove-team"]:
38
 
        files.modify_teams(args)
39
 
        bzr.add_if_not_in_inventory(files.local_branch(), 
40
 
                                    os.path.basename(files.team_file()))
41
 
        bzr.commit_changes(force=True)
 
38
        if files.modify_teams(args):
 
39
            bzr.add_if_not_in_inventory(files.local_branch(), 
 
40
                                        os.path.basename(files.team_file()))
 
41
            bzr.commit_changes(force=True)
 
42
            return 0
 
43
        return 1
42
44
 
43
45
    if args[0] in ["--show-team", "--show-teams"]:
44
46
        files.show_teams()