Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
stub out Team takes plumbing
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed May 10, 2016
1 parent 910e703 commit 5ec3b27
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gratipay/models/team/mixins/takes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ def set_takes_enabled(self, to):
, new_value=to
)
)


def set_takes_for(self, participant, ntakes):
raise NotImplementedError


def add_taker(self, participant):
self.set_takes_for(participant, 1)


def remove_taker(self, participant):
self.set_takes_for(participant, 0)

0 comments on commit 5ec3b27

Please sign in to comment.