Christopher Lam
119356752f
Merge branch 'maint'
3 years ago
luzpaz
67ab9e90d2
Fix some typos
3 years ago
Geert Janssens
e97fc3e408
Drop price-quotes.scm, gnc-fq-helper.in and gnc-fq-check.in - no longer used
3 years ago
luz paz
ba94730a23
Fix various typos
...
Found via `codespell`
4 years ago
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.
4 years ago
Christoph Holtermann
64920e7c70
Small fix in expected result
4 years ago
Christoph Holtermann
07cfe9e45c
Missed one redundancy
4 years ago
Christoph Holtermann
395c7a7052
Modify examples to respect previous patch
4 years ago
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.
4 years ago
Christoph Holtermann
f44d23035e
python qof examples
4 years ago
Steven Walter
5f721614ad
Remove unneeded .decode() from Invoice*.tex.templ
...
These values are already str's, don't decode them
5 years ago
Steven Walter
3ed6b4dab9
latex_invoices.py: write takes string not bytes
...
write() fails if you give it bytes, so don't encode
5 years ago
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)
5 years ago
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.
5 years ago
luz paz
95f8884892
Fix misc. typos in comments
5 years ago
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')
5 years ago
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
6 years ago
c-holtermann
0434acbe10
reformat two python example scripts with black
...
use black python code formatter on latex_invoices.py and gncinvoice_jinja.py
6 years ago
c-holtermann
ee77b713c2
update example scripts to SessionOpenMode
6 years ago
andygoblins
08af4ce9bd
context manager examples
6 years ago
andygoblins
f1f450cedc
make Session a context manager
6 years ago
Geert Janssens
df1f033f41
bindings-python - drop references to gnucash-env
...
We no longer ship a gnucash-env script, directly use python(3) instead
6 years ago
Andrey Legayev
34c14b44a9
Remove not needed semicolons in Python bindings
6 years ago
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`
7 years ago
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.
7 years ago
John Ralls
fc355958b8
Merge Christoph Holtermann's 'PR-python2to3-rest-api' into maint.
7 years ago
John Ralls
8823f7283f
Merge Christoph Holtermann's 'PR-python2to3' into maint.
7 years ago
c-holtermann
c779bcb72f
GetOwner may return project instead of owner
7 years ago
c-holtermann
6925ee3115
be prepared for GetDateDue returning null
7 years ago
c-holtermann
876079f8d2
remove TS suffix
7 years ago
c-holtermann
6eae440534
GetDate return unserializable datetime object
7 years ago
c-holtermann
b73be1b523
GetInvTaxTable returns unserializable object
7 years ago
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
7 years ago
c-holtermann
e7d940ac3f
iteritems removed in python3
7 years ago
c-holtermann
77727ffc49
python3 does not return list of keys
7 years ago
c-holtermann
64a01f3027
python3 - 'as' needed in exceptions instead of comma
7 years ago
c-holtermann
0068475bb1
xrange has been dropped in python3
7 years ago
c-holtermann
298797a9be
fix due to different invoice date handling
7 years ago
Christoph Holtermann
206ed63233
typo
7 years ago
Christoph Holtermann
247d04a544
make executable, remove double -o
7 years ago
Christoph Holtermann
1184e92687
2to3
7 years ago
Christoph Holtermann
002595f4cc
add options iOP
7 years ago
Christoph Holtermann
61f7613b8d
fix for python3
7 years ago
Rob Reid
9be545f5ce
Fixes for new 64-bit time setter/getters
7 years ago
Frank Oltmanns
5675dad2f3
Update query for get_all_customers
...
Use same time of query in get_all_customers as in get_all_invoices
7 years ago
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.
7 years ago
John Ralls
d9ed847595
Merge Christoph Holterman's 'PR-python2to3fixes' into maint.
7 years ago
Mahmoud Yaser
3e014f189f
Update change_tax_code.py
8 years ago
Mahmoud Yaser
f726238865
Update change_tax_code.py
8 years ago
Mahmoud Yaser
3b416f07be
Update change_tax_code.py
8 years ago