Commit Graph
22 Commits
Author SHA1 Message Date
Ryan Duguid 9b9cec4223 Use SetDatePostedSecs in the REST example transaction setters
SetDatePostedTS no longer exists in the Python bindings. SetDatePostedSecs
accepts the datetime parsed from the request.
2026-10-19 18:04:29 +11:00
Ryan Duguid e319713a12 Handle missing void time in REST transaction serialisation 2026-10-19 18:04:28 +11:00
Ryan Duguid 64334caa90 Fix transaction listing serializer arguments 2026-10-19 18:04:27 +11:00
peter 2d0a3850ae Bug 799767 - POST /accounts route in rest-api example is broken
addAccount was rewritten to accept (name, currency, account_type_id,
parent_account_guid, description, code), validate each field, look up
the parent by GUID, and return gnucash_simple.accountToDict(account).
The route handler was updated to pull the form fields and call it with the
new signature.

README was updated to reflect these changes.
2026-05-25 14:40:50 -05:00
luzpaz 67ab9e90d2 Fix some typos 2023-01-26 13:48:58 +01:00
luz paz ba94730a23 Fix various typos
Found via `codespell`
2022-09-06 10:44:29 -04:00
Christoph Holtermann 395c7a7052 Modify examples to respect previous patch 2022-03-08 10:40:12 +01:00
c-holtermann ee77b713c2 update example scripts to SessionOpenMode 2020-06-21 16:23:32 +02:00
Andrey Legayev 34c14b44a9 Remove not needed semicolons in Python bindings 2019-11-29 18:32:50 +02:00
luz.paz 65bb60d621 Fix typos for gnuchash/ doc/ bindings/ and misc.
Typos found via `codespell -q 3 -D ~/Projects/codespell/codespell_lib/data/dictionary.txt -S *.po,./po,*.min.js,./ChangeLog*,./NEWS,./doc/README*,./AUTHORS,./libgnucash/tax/us/txf-de*,./data/accounts -L ans,cas,dragable,gae,iff,iif,mut,nd,numer,startd,stoll`
2019-09-13 20:26:03 -04:00
John Ralls fc355958b8 Merge Christoph Holtermann's 'PR-python2to3-rest-api' into maint. 2019-04-14 14:27:53 -07:00
c-holtermann c779bcb72f GetOwner may return project instead of owner 2019-04-04 17:56:42 +02:00
c-holtermann 6925ee3115 be prepared for GetDateDue returning null 2019-04-04 17:56:31 +02:00
c-holtermann 876079f8d2 remove TS suffix 2019-04-04 17:56:24 +02:00
c-holtermann 6eae440534 GetDate return unserializable datetime object 2019-04-04 17:56:16 +02:00
c-holtermann b73be1b523 GetInvTaxTable returns unserializable object 2019-04-04 17:56:06 +02:00
c-holtermann b06801185c shebang should be specific to python version (PEP394)
preferred form is #!/usr/bin/env python3 as gnucash now only works with
python3
2019-04-04 17:48:42 +02:00
c-holtermann 77727ffc49 python3 does not return list of keys 2019-04-04 17:47:52 +02:00
c-holtermann 0068475bb1 xrange has been dropped in python3 2019-04-04 17:47:14 +02:00
Fabian Köster 07a5485814 Fix syntax 2018-04-19 08:32:46 +02:00
John Ralls bea89a50ac More python 3 fixups. 2018-03-22 15:19:59 -07:00
Geert Janssens 83d14e1c1c Restructure the src directory
It is split into
- /libgnucash (for the non-gui bits)
- /gnucash (for the gui)
- /common (misc source files used by both)
- /bindings (currently only holds python bindings)

This is the first step in restructuring the code. It will need much
more fine tuning later on.
2017-08-10 18:45:00 +02:00