Christopher Lam
119356752f
Merge branch 'maint'
2023-01-30 09:56:13 +08:00
luzpaz
67ab9e90d2
Fix some typos
2023-01-26 13:48:58 +01:00
Geert Janssens
e97fc3e408
Drop price-quotes.scm, gnc-fq-helper.in and gnc-fq-check.in - no longer used
2022-10-02 11:50:26 -07:00
luz paz
ba94730a23
Fix various typos
...
Found via `codespell`
2022-09-06 10:44:29 -04:00
John Ralls
688832b5f8
Bug 798585 - segfault running sample script
...
The root cause of which is that on recent releases of GLib (recent
meaning 2.66 in the current Debian stable!) g_type_instance_get_private
looks in the wrong place for the private data. When running the script
in question it returned NULL and since the code didn't check for a valid
pointer, it crashed.
So this change replaces all calls to g_type_instance_get_private with
the function [type_prefix]_get_instance_private() added in glib-2.36
except for two register2 files that have been removed from master; those
are ignored to avoid unnecessary merge conflicts.
2022-07-30 16:50:51 -07:00
Christoph Holtermann
64920e7c70
Small fix in expected result
2022-03-08 10:49:44 +01:00
Christoph Holtermann
07cfe9e45c
Missed one redundancy
2022-03-08 10:45:17 +01:00
Christoph Holtermann
395c7a7052
Modify examples to respect previous patch
2022-03-08 10:40:12 +01:00
Christoph Holtermann
06e17dfd5c
Provide wrapper for qof numeric predicate
...
Python bindings already have some wrapping objects for
qof predicates. This adds the one missing for GncNumeric
comparisons.
Additionally fixes a wrong number for QOF_NUMERIC_MATCH_ANY
in example file.
2022-03-08 09:45:48 +01:00
Christoph Holtermann
f44d23035e
python qof examples
2022-03-06 23:52:32 +01:00
Steven Walter
5f721614ad
Remove unneeded .decode() from Invoice*.tex.templ
...
These values are already str's, don't decode them
2021-08-03 15:59:54 -04:00
Steven Walter
3ed6b4dab9
latex_invoices.py: write takes string not bytes
...
write() fails if you give it bytes, so don't encode
2021-08-01 22:17:41 -04:00
Steven Walter
ba4852a9da
latex_invoices.py: use default locale
...
Don't hardcode a locale. Empty string means to use the user's locale
(e.g. $LANG)
2021-08-01 22:17:11 -04:00
Steven Walter
ad3895fa07
latex_invoices.py: don't decode() a str
...
These functions all return str's not bytes. Therefore there is no need
to decode them.
2021-08-01 22:16:33 -04:00
luz paz
95f8884892
Fix misc. typos in comments
2021-06-29 08:46:34 +02:00
koldavi
506fd57989
Fix to_string_with_decimal_point_placed
...
>>> nominator='123456'
A digit is missing in the string returned from to_string_with_decimal_point_placed. The -1 error.
>>> point_place=2
>>> nominator[:-point_place - 1], nominator[-point_place:]
('123', '56')
2021-04-01 13:26:15 +02:00
Hong Xu
e0e77ca39d
Add Python example export_account_totals.py
...
This example exports acount totals of all accounts into a CSV file.
This has been asked before: https://money.stackexchange.com/questions/111786/exporting-account-totals-in-gnucash
2020-08-01 14:47:33 -07:00
c-holtermann
0434acbe10
reformat two python example scripts with black
...
use black python code formatter on latex_invoices.py and gncinvoice_jinja.py
2020-06-21 16:23:32 +02:00
c-holtermann
ee77b713c2
update example scripts to SessionOpenMode
2020-06-21 16:23:32 +02:00
andygoblins
08af4ce9bd
context manager examples
2020-02-29 17:46:01 -06:00
andygoblins
f1f450cedc
make Session a context manager
2020-02-29 17:46:01 -06:00
Geert Janssens
df1f033f41
bindings-python - drop references to gnucash-env
...
We no longer ship a gnucash-env script, directly use python(3) instead
2019-11-30 13:20:08 +01: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
Geert Janssens
15a35e6a3b
Housekeeping - replace plenty of http links with https
...
There are more, but these are most common ones.
There are also a number of urls that don't behave well when https, so those are skipped
At some point I have also started marking non-working URLs as [DEAD LINK], though
that's not a full coverage.
2019-06-06 15:52:30 +02:00
John Ralls
fc355958b8
Merge Christoph Holtermann's 'PR-python2to3-rest-api' into maint.
2019-04-14 14:27:53 -07:00
John Ralls
8823f7283f
Merge Christoph Holtermann's 'PR-python2to3' into maint.
2019-04-14 14:24:16 -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
e7d940ac3f
iteritems removed in python3
2019-04-04 17:48:10 +02:00
c-holtermann
77727ffc49
python3 does not return list of keys
2019-04-04 17:47:52 +02:00
c-holtermann
64a01f3027
python3 - 'as' needed in exceptions instead of comma
2019-04-04 17:47:34 +02:00
c-holtermann
0068475bb1
xrange has been dropped in python3
2019-04-04 17:47:14 +02:00
c-holtermann
298797a9be
fix due to different invoice date handling
2019-04-04 11:53:40 +02:00
Christoph Holtermann
206ed63233
typo
2019-04-04 11:53:23 +02:00
Christoph Holtermann
247d04a544
make executable, remove double -o
2019-04-04 11:52:44 +02:00
Christoph Holtermann
1184e92687
2to3
2019-04-04 11:52:13 +02:00
Christoph Holtermann
002595f4cc
add options iOP
2019-04-04 11:51:00 +02:00
Christoph Holtermann
61f7613b8d
fix for python3
2019-04-04 11:49:20 +02:00
Rob Reid
9be545f5ce
Fixes for new 64-bit time setter/getters
2019-01-06 22:05:43 +08:00
Frank Oltmanns
5675dad2f3
Update query for get_all_customers
...
Use same time of query in get_all_customers as in get_all_invoices
2018-12-24 13:42:22 -08:00
Frank H. Ellenberger
0467dd0b92
Fix several URLs in documentation parts
...
We have no longer svn, but 2 doxygen branches.
I don't remember, when Mailman moved from www to lists.
2018-11-03 10:15:19 +01:00
John Ralls
d9ed847595
Merge Christoph Holterman's 'PR-python2to3fixes' into maint.
2018-10-16 09:37:25 -07:00
Mahmoud Yaser
3e014f189f
Update change_tax_code.py
2018-09-26 08:21:17 +02:00
Mahmoud Yaser
f726238865
Update change_tax_code.py
2018-09-24 17:21:16 +02:00
Mahmoud Yaser
3b416f07be
Update change_tax_code.py
2018-09-24 11:12:16 +02:00