def editAccountType(self, id, name, canadvance): accounttype = AccountService().getAccountType(id) if accounttype: accounttype.name = name accounttype.canadvance= canadvance accounttype.put()
def editCurrency(self, id, name, symbol): currency = AccountService().getCurrency(id) if currency: currency.name = name currency.symbol = symbol currency.put()