Exemplo n.º 1
0
def getAccountObj(id):
    if Account.accountExist(id):
        account = Account(id)
        if account.type == 'CA':
            account = CAccount(id)
        elif account.type == 'SA':
            account = SAccount(id)
        return account
    else:
        return 0