Commit graph

9 commits

Author SHA1 Message Date
Joar Wandborg
281d6fed47 [test] Added unit tests
- Moved the TransactionNotFound exception to a more appropriate place.
- Changed the serialization for AccountingExceptions
- Override the Exception.__init__ method in AccountingException
- Added __eq__ methods to accounting.models.*
- Catch the TransactionNotFound exception in transaction_get and return a
  404 instead. This could be improved, perhaps in the jsonify_exceptions
  decorator so that all endpoints that raise a TransactionNotFound
  exception automatically return a 404.
2013-12-21 00:24:37 +01:00
Joar Wandborg
8776ab1ff8 Exception does not work with %s 2013-12-18 22:11:21 +01:00
Joar Wandborg
02fc05aebd [storage] Added delete_transaction method
- Added storage.ledgercli implementation
- Added storage.ledgercli update_transaction
- Added storage.ledgercli get_transaction
- Pushing pre-built docs
2013-12-18 22:02:03 +01:00
Joar Wandborg
fc2c3a6b43 [license] Added notice to all python files 2013-12-17 15:41:30 +01:00
Joar Wandborg
751341c267 [storage] Added add_transaction abstract method 2013-12-17 14:11:29 +01:00
Joar Wandborg
8e59d3d661 [sql] Late init_app of SQLAlchemy
in order to be able to run sql/models.py alone (e.g. sphinx autodoc)
2013-12-17 11:16:51 +01:00
Joar Wandborg
a0318ce82e [storage] Proper ABC 2013-12-17 11:14:45 +01:00
Joar Wandborg
f2b9decf27 SQL, GTK
- Made the storage model slightly more flexible
- Made a small P-o-C GUI application in GTK
- Polished accounting.client
- models.Transaction.id is now a str
- Fixed transaction.id marshalling for storage.ledgercli
2013-12-16 07:33:56 +01:00
Joar Wandborg
124bd1706d Added SQL storage backend
- Added Storage ABC
- Moved Ledger class to storage/ledgercli.py
- Added SQL requirements to requirements.txt
2013-12-14 16:08:47 +01:00