Changeset - 751341c267ed
[Not reviewed]
0 1 0
Joar Wandborg - 10 years ago 2013-12-17 13:11:29
joar@wandborg.se
[storage] Added add_transaction abstract method
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
accounting/storage/__init__.py
Show inline comments
...
 
@@ -5,31 +5,35 @@ 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 add_transaction(self, transaction):
 
        raise NotImplementedError
 

	
 
    @abstractmethod
 
    def update_transaction(self, transaction):
 
        raise NotImplementedError
 

	
 
    @abstractmethod
 
    def reverse_transaction(self, transaction_id):
 
        raise NotImplementedError
0 comments (0 inline, 0 general)