Commit Graph

21430 Commits

Author SHA1 Message Date
c-holtermann
4868e046c3 add quit event handler to python console 2019-04-19 12:01:03 +02:00
c-holtermann
ecab7968e2 on quitting don't kill gtk main process 2019-04-19 11:59:59 +02:00
c-holtermann
e2fd241836 stop closing shell window from closing gnucash 2019-04-19 11:59:28 +02:00
thetedmunds
9afc856c20 Changed gnc:computeInterestIncrement to directly calculate the amount of interest accrued in the specified compounding period. Bug 797195. 2019-04-17 12:11:29 -07:00
thetedmunds
5f9020016a Amended commit to address pull-request comments. 2019-04-17 11:52:24 -07:00
Frank H. Ellenberger
e3e11afcb5 [L12N] Romanian is now maintained by Translation Project
https://lists.gnucash.org/pipermail/gnucash-devel/2019-April/043701.html
2019-04-16 20:06:02 +02:00
Frank H. Ellenberger
0ebb02e243 [I18N] Unify placeholder warning
https://lists.gnucash.org/pipermail/gnucash-devel/2019-March/043624.html
2019-04-16 19:48:41 +02:00
John Ralls
0251d044b5 Merge Christoph Holtermann's 'Pr pycons2to3' into maint. 2019-04-15 14:25:49 -07:00
c-holtermann
5a73b9afd4 syntax change to exec 2019-04-15 22:31:29 +02:00
c-holtermann
cc7673ccc8 filter needs to be converted to list.
Method replace is missing. Needs to be fixed.
2019-04-15 22:30:27 +02:00
c-holtermann
bf9ec70f27 reflect syntax change to sys tracebacks 2019-04-15 22:29:20 +02:00
c-holtermann
d93d4efd82 Import necessary module gdk 2019-04-15 22:26:55 +02:00
c-holtermann
af3b9bf215 change shebang to python3 2019-04-15 22:26:46 +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
b2f25408d7 Merge Christoff Holtermann's 'PR-python-time64-modifications' into maint 2019-04-14 14:26:35 -07:00
John Ralls
8823f7283f Merge Christoph Holtermann's 'PR-python2to3' into maint. 2019-04-14 14:24:16 -07:00
John Ralls
f772b50542 Merge Christoph Holterman's 'PR-python2to3-str_methods-gnc_jinja' into maint 2019-04-14 14:23:37 -07:00
Robert Fewell
0f6465ca6d Bug 797175 - Gnucash will not open from UNC paths.
UNC paths were overlooked in a change I made, corrected and added some
notes to source file for reminder.
2019-04-12 11:53:29 +01:00
John Ralls
c091197f57 Provide static strings for gnc_userdata_home and gnc_userconfig_home.
On Windows boost::filesystem::path's string() produces a string
that goes out of scope with the function in which it's called, so
returning its c_str() ptr yields freed memory, usually full of garbage.

This has an interesting side effect in gnc-file.c's check_file_path():
Since the memory is freed, g_path_get_dirname() reuses it after an
iteration or two, writing its result into the same address. The
following strcmp naturally returns 0 because it's comparing two
instances of the same ptr, so check_file_path falsely reports that
the proposed save path is in GNC_USERDATA_DIR.
2019-04-11 17:38:01 -07:00
Christopher Lam
6e7a4ccc77 Bug 797188 - Default invoice prints credit note as invoice
Error in guile code. Using (case var (datum ...)) means that datum are
symbols, so if datum is (GNC-INVOICE-VEND-INVOICE) it would try
(eqv? type 'GNC-INVOICE-VEND-INVOICE) which would never be true. We
need (eqv? type GNC-INVOICE-VEND-INVOICE). Using (cond) is more
appropriate here.
2019-04-11 18:43:57 +08:00
Robert Fewell
19bbeaa67a Bug 797185 - Correct the sorting for the Transaction Association Dialog
Change the sort function to use the correct model column.
2019-04-09 20:21:23 +01:00
Robert Fewell
d44e0ee750 When displaying paths on MS Windows, make them look normal
Change the forward slashes to back slashes as that is normal for paths
in MS Windows.
2019-04-09 20:21:23 +01:00
Robert Fewell
e745f4cfee Fix some transient parent warnings for gnc_launch_assoc
Add a Gtkwindow parent parameter to above function so it can be passed
to the error warning dialog.
2019-04-09 20:21:23 +01:00
Robert Fewell
57eac14d82 Bug 797183 - association head path with spaces displayed wrong
The Transaction Association path head was being displayed with '%20' as
the space as it was not being unescaped. Fixed by unescaping and also
noticed that the error message string were wrong also.
2019-04-09 20:21:16 +01:00
Christopher Lam
0cce764e78 Merge branch 'maint' of https://github.com/Gnucash/gnucash into maint 2019-04-09 21:19:11 +08:00
Christopher Lam
58e79e5aa7 [test-commodity-utils] upgrade to 100% coverage of pricing funcs
and add optional coverage analysis
2019-04-09 21:18:09 +08:00
Christopher Lam
e4d5e2c94d [commodity-utils] fix issue-deprecation-warning typo 2019-04-09 21:13:23 +08:00
Christopher Lam
eab53d44b3 [report] rewrite gnc:report-template-has-unique-name? 2019-04-09 15:03:30 +08:00
Frank H. Ellenberger
1c9ad3af35 Minor update of de.po
5113 übersetzte Meldungen, 42 ungenaue Übersetzungen, 105 unübersetzte
Meldungen.
2019-04-08 19:28:32 +02:00
Frank H. Ellenberger
8d36079c59 Merge a fresh gnucash.pot into de.po
5067 übersetzte Meldungen, 82 ungenaue Übersetzungen, 111 unübersetzte
Meldungen.
2019-04-08 19:26:15 +02:00
Frank H. Ellenberger
833decc03e I18N: Review of price-quotes.scm
Mark "Found FQ version" translatable, but remove translation from log
file entries.
2019-04-08 17:37:33 +02:00
Christopher Lam
ad51c5e00a [report] rewrite gnc:report-template-make-unique-name 2019-04-08 22:37:31 +08:00
milotype
3352b53491
Correction of updated hr.po
Correction of the first commited file, for the following error:
 hr.po:19067: msgstr lacks the keyboard accelerator mark ''
2019-04-08 00:04:48 +02:00
milotype
1fcd05dfd6
Update hr.po with pot 3.5 2019-04-06 19:16:53 +02:00
c-holtermann
0c02866964 PyDate_Check works for date and datetime 2019-04-06 17:13:41 +02:00
c-holtermann
18a2688419 typo 2019-04-06 16:17:58 +02:00
c-holtermann
db9e98a812 also allow datetime.date
Initialisation of some business objects has been done with
datetime.date.today() and it is also mentioned as a possibility
in the source doc. So leave it possible.
2019-04-06 16:10:04 +02:00
c-holtermann
3884e6abf5 unobfuscate get_date method name 2019-04-06 16:09:01 +02:00
c-holtermann
8ba5e552d9 return None object if return value is FALSE 2019-04-06 14:50:29 +02:00
c-holtermann
dafdd702e6 additional author 2019-04-06 14:12:06 +02:00
c-holtermann
79decfb754 deal with functions returning values through arguments 2019-04-06 14:11:55 +02:00
c-holtermann
445ff7e6c9 check for argument type. Also allow int. 2019-04-06 14:11:05 +02: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