Commit graph

5 commits

Author SHA1 Message Date
Joar Wandborg
8abbe3462f [tests] Check transactions for errors before being added
- Added support for Exception-specific HTTP response codes for
  AccountinExceptions.
2013-12-26 21:48:45 +01:00
Joar Wandborg
fcec13c548 [ledgercli] Versioning, error handling
- Switched to passing the command via argv instead of stdin to ledger. We
  might as well as we don't use ledger's long-running mode in an effective
  manner.
- Added version control of the ledger file using pygit2.A
- Added error handling in the case of an unbalanced ledger, and cruder
  error handling in the case of any stderr output from ledger.
- [web] Separated transaction_get into transaction_get and
  transaction_get_all.
2013-12-26 20:48:23 +01:00
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
fc2c3a6b43 [license] Added notice to all python files 2013-12-17 15:41:30 +01:00
Joar Wandborg
6f2c875c7b Added /transaction endpoint 2013-12-11 00:25:16 +01:00