def addMoneyTransfer(self, fromaccount, toaccount, happentime, money, currency, description, user): moneytransfer = MoneyTransfer(fromaccount=fromaccount, toaccount=toaccount, happentime=happentime, money=money, currency=currency, description=description, user=user) moneytransfer.put() AccountService().updateAccountMoney(fromaccount, money, -1) AccountService().updateAccountMoney(toaccount, money, 1)