Files
@ 8e59d3d66159
Branch filter:
Location: NPO-Accounting/experimental-accounting-api/accounting/storage/__init__.py - annotation
8e59d3d66159
783 B
text/x-python
[sql] Late init_app of SQLAlchemy
in order to be able to run sql/models.py alone (e.g. sphinx autodoc)
in order to be able to run sql/models.py alone (e.g. sphinx autodoc)
a0318ce82eca 124bd1706d79 a0318ce82eca a0318ce82eca 124bd1706d79 124bd1706d79 124bd1706d79 a0318ce82eca a0318ce82eca 124bd1706d79 a0318ce82eca 124bd1706d79 a0318ce82eca 124bd1706d79 a0318ce82eca 124bd1706d79 a0318ce82eca 124bd1706d79 a0318ce82eca 124bd1706d79 a0318ce82eca 124bd1706d79 a0318ce82eca 124bd1706d79 a0318ce82eca 124bd1706d79 a0318ce82eca a0318ce82eca a0318ce82eca a0318ce82eca a0318ce82eca a0318ce82eca a0318ce82eca a0318ce82eca a0318ce82eca | from abc import ABCMeta, abstractmethod
class Storage():
'''
ABC for accounting storage
'''
__metaclass__ = ABCMeta
def __init__(self, *args, **kw):
pass
@abstractmethod
def get_transactions(self, *args, **kw):
raise NotImplementedError
@abstractmethod
def get_transaction(self, *args, **kw):
raise NotImplementedError
@abstractmethod
def get_account(self, *args, **kw):
raise NotImplementedError
@abstractmethod
def get_accounts(self, *args, **kw):
raise NotImplementedError
@abstractmethod
def update_transaction(self, transaction):
raise NotImplementedError
@abstractmethod
def reverse_transaction(self, transaction_id):
raise NotImplementedError
|