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

Commit

Permalink
Modify take_over to take an AccountElsewhere; #406
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Dec 14, 2012
1 parent 72f5ae6 commit e83cd56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gittip/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def get_tips_and_total(self, for_payday=False, db=None):
# ==================

@require_id
def take_over(self, platform, user_id, have_confirmation=False):
def take_over(self, account_elsewhere, have_confirmation=False):
"""Given two unicodes, raise WontProceed or return None.
This method associates an account on another platform (GitHub, Twitter,
Expand Down Expand Up @@ -562,6 +562,9 @@ def take_over(self, platform, user_id, have_confirmation=False):
This is done in one transaction.
"""
platform = account_elsewhere.platform
user_id = account_elsewhere.user_id

typecheck(platform, unicode, user_id, unicode, have_confirmation, bool)

CONSOLIDATE_TIPS_RECEIVING = """
Expand Down

0 comments on commit e83cd56

Please sign in to comment.