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
ef12c232ad
[doc] Updated restapi documentation
2013-12-26 21:07:17 +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
4fce6b4fea
[tests] Added bin/runtests
2013-12-26 13:26: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
0108548b4b
[doc] Changed the README title for better inclusion in doc
2013-12-26 13:21:26 +01:00
Joar Wandborg
0e72c2b543
[doc] Updated and added precompiled html output
2013-12-26 13:20:07 +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
36d91dd0b3
[docs] Changed the theme to the Flask theme
...
I like it because it doesn't allow the text to fill horizontally
over the entire screen.
2013-12-20 16:00:09 +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
8bd5c36267
Added sphinxcontrib-httpdomain to dependencies
2013-12-20 14:54:30 +01:00
Joar Wandborg
2eecd641dd
Added CORS Flask endpoint decorator
2013-12-20 14:51:32 +01:00
Joar Wandborg
3378805b80
[doc] Added REST API, using sphinxcontrib-httpdomain
2013-12-18 22:46:19 +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
c80955f199
[doc] Added pre-compiled doc built with pydoctheme
2013-12-18 19:17:02 +01:00
Joar Wandborg
1f88631ae3
[doc] Added pydoctheme
2013-12-18 19:14:47 +01:00
Joar Wandborg
f9b9aff4a9
[doc] Fixed .gitignore and added pre-built README.html
2013-12-18 18:50:24 +01:00
Joar Wandborg
be19071629
[doc] Included built docs
2013-12-18 18:42:42 +01:00
Joar Wandborg
e64df7d309
[doc] Updated README and included it in docs
2013-12-18 18:41:53 +01:00
Joar Wandborg
fc2c3a6b43
[license] Added notice to all python files
2013-12-17 15:41:30 +01:00
Joar Wandborg
7da9d5cfe1
Added sphinx license
2013-12-17 15:30:12 +01:00
Joar Wandborg
02eeb17383
Merge branch 'master' of gitorious.org:conservancy/accounting-api
2013-12-17 15:11:14 +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
Bradley M. Kuhn
44a2c02706
Clearly add LICENSE information and details about copyright inventory.
2013-12-17 08:02:06 -05:00
Bradley M. Kuhn
092277d46a
Rename LICENSE file to AGPLv3.
2013-12-17 07:52:57 -05: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
5764ebb604
Add compiled documentation to tree
2013-12-17 09:42:53 +01:00
Joar Wandborg
f443e37d8c
[gtkclient] Updated layout
2013-12-17 06:00:21 +01:00
Joar Wandborg
d63c8107d8
Added SQL requirements
2013-12-16 07:39:38 +01:00
Joar Wandborg
0e3d742e0d
Updated API documentation
2013-12-16 07:39:05 +01:00
Joar Wandborg
a1ed27a82c
Addded tests/ folder with example payloads
2013-12-16 07:38:45 +01:00
Joar Wandborg
c10b6ec72e
Added ./bin/gtkclient
2013-12-16 07:38:00 +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
caf0de1979
Updated README
2013-12-12 22:25:31 +01:00
Joar Wandborg
e417031dfe
[doc] Added api/accounting.rst to index.rst toctree
2013-12-12 20:56:53 +01:00
Joar Wandborg
f7794c6270
Added AGPLv3
2013-12-12 20:53:22 +01:00
Joar Wandborg
cc81e11b8b
Removed api doc for local temp file
2013-12-12 20:46:03 +01:00
Joar Wandborg
f0652d4897
Added sphinx to requirements.txt
2013-12-12 15:11:31 +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