Commit graph

33 commits

Author SHA1 Message Date
Joar Wandborg
816099ad55 [ledgercli] Do not remove the old transaction on invalid update 2013-12-29 22:14:59 +01:00
Joar Wandborg
86a6bec585 [ledgercli] Store posting metadata 2013-12-29 21:22:51 +01:00
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
3620d97f9d [tests] Added tests and updated storage.ledgercli
- [ledgercli] Log info messages for operations such as add, delete, update
  transactions
2013-12-26 13:22:27 +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
574cef4c9c [js-client] Added license notice to client.js 2013-12-20 15:32:37 +01:00
Joar Wandborg
377c1567ab [js-client] Added javascript account client 2013-12-20 15:04:37 +01:00
Joar Wandborg
2eecd641dd Added CORS Flask endpoint decorator 2013-12-20 14:51:32 +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
f22bd3eead [gtk] status_description => activity_description 2013-12-17 14:11:59 +01:00
Joar Wandborg
751341c267 [storage] Added add_transaction abstract method 2013-12-17 14:11:29 +01:00
Joar Wandborg
873cff4229 [web] Late init of storage engine. 2013-12-17 11:18:35 +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
14b79bf0a4 [gtkclient] GtkBuilder-powered gtkclient 2013-12-17 11:12:40 +01:00
Joar Wandborg
f443e37d8c [gtkclient] Updated layout 2013-12-17 06:00:21 +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
Joar Wandborg
c0b791b30f Added sphinx documentation, added and inproved docstrings 2013-12-12 15:09:53 +01:00
Joar Wandborg
f0a5db5a29 Refactored accounting.client 2013-12-12 10:27:51 +01:00
Joar Wandborg
032175cd26 Added transaction IDs and metadata 2013-12-11 15:12:08 +01:00
Joar Wandborg
9656c39e91 Added client, other fixes
- Switched from int to decimal.Decimal
- Moved models to accounting.models
2013-12-11 09:25:55 +01:00
Joar Wandborg
6f2c875c7b Added /transaction endpoint 2013-12-11 00:25:16 +01:00
Joar Wandborg
63c7b70000 Two-way conversion from internal representation and JSON 2013-12-10 23:22:57 +01:00
Joar Wandborg
af6e28d168 Use Amount objects, use the XML output in bal() 2013-12-09 21:49:38 +01:00
Joar Wandborg
dd260aa021 Move stdout processing into send_command 2013-12-09 21:04:17 +01:00
Joar Wandborg
f8f51f7489 Added simple web serving of ledger data. 2013-12-09 20:53:20 +01:00
Joar Wandborg
758f601316 timout => timeout 2013-12-09 19:10:57 +01:00
Joar Wandborg
51fdc7206b Streamlined the lock check 2013-12-09 18:04:14 +01:00
Joar Wandborg
222ef8b421 Initial commit 2013-12-09 17:54:00 +01:00