account_type.py 485 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from sqlalchemy.orm import mapper

from aurweb.schema import AccountTypes


class AccountType:
    """ An ORM model of a single AccountTypes record. """

    def __init__(self, **kwargs):
        self.AccountType = kwargs.pop("AccountType")

    def __str__(self):
        return str(self.AccountType)

    def __repr__(self):
        return "<AccountType(ID='%s', AccountType='%s')>" % (
            self.ID, str(self))


mapper(AccountType, AccountTypes, confirm_deleted_rows=False)