From 2b5b1cce213c157c6de91f0f27528382f5a842d1 Mon Sep 17 00:00:00 2001 From: aandis Date: Sun, 4 Dec 2016 23:10:25 +0530 Subject: [PATCH] Dummy payment instruction method. --- gratipay/models/package/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gratipay/models/package/__init__.py b/gratipay/models/package/__init__.py index bc811a1a2f..a1df9931e2 100644 --- a/gratipay/models/package/__init__.py +++ b/gratipay/models/package/__init__.py @@ -73,6 +73,15 @@ def set_team(self, team): """, locals()) self.set_attributes(team=team) + def set_payment_instruction(self, participant, amount): + team_id = self.team_id + if team_id: + team = Team.from_id(team_id) + participant.set_payment_instruction(team, amount) + else: + # TODO Add to pledges when we introduce it. + pass + class NotAllowed(Exception): pass