From 751341c267ed0639435e519bb3a42e8ccb785c82 Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Tue, 17 Dec 2013 14:11:29 +0100 Subject: [PATCH] [storage] Added add_transaction abstract method --- accounting/storage/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/accounting/storage/__init__.py b/accounting/storage/__init__.py index bbaa16d..4985a07 100644 --- a/accounting/storage/__init__.py +++ b/accounting/storage/__init__.py @@ -26,6 +26,10 @@ class Storage(): def get_accounts(self, *args, **kw): raise NotImplementedError + @abstractmethod + def add_transaction(self, transaction): + raise NotImplementedError + @abstractmethod def update_transaction(self, transaction): raise NotImplementedError