gnucash maint: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Sun Mar 14 13:48:39 EDT 2021
Updated via https://github.com/Gnucash/gnucash/commit/66eca8aa (commit)
via https://github.com/Gnucash/gnucash/commit/a6276708 (commit)
from https://github.com/Gnucash/gnucash/commit/4be6c635 (commit)
commit 66eca8aab7396c70b4494f27d3d5ee8f91b814d4
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Mar 14 09:58:12 2021 -0700
Update python/gnucash_business.py to reflect rename of gncOwnerApplyPayment.
Made 3 years ago.
diff --git a/bindings/python/gnucash_business.py b/bindings/python/gnucash_business.py
index e3aaa51ce..a8f79e712 100644
--- a/bindings/python/gnucash_business.py
+++ b/bindings/python/gnucash_business.py
@@ -248,7 +248,7 @@ methods_return_instance_lists(
# Customer
Customer.add_constructor_and_methods_with_prefix('gncCustomer', 'Create')
-Customer.add_method('gncOwnerApplyPayment', 'ApplyPayment')
+Customer.add_method('gncOwnerApplyPaymentSecs', 'ApplyPayment')
customer_dict = {
'GetAddr' : Address,
commit a6276708c0bdebea5ceea364ad5d266d8651503e
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Mar 14 09:54:11 2021 -0700
Bug 797630 - Check for missing dependencies of 'Get Quotes'...
to avoid Gnucash crash.
We already did, just not in the right order to get the error to
percolate up to price-quotes.scm.
diff --git a/libgnucash/quotes/gnc-fq-helper.in b/libgnucash/quotes/gnc-fq-helper.in
index 95e7210c5..ab9f496b3 100755
--- a/libgnucash/quotes/gnc-fq-helper.in
+++ b/libgnucash/quotes/gnc-fq-helper.in
@@ -23,10 +23,6 @@
use strict;
use English;
-use FileHandle;
-
-# Date::Manip provides ParseDate, ParseDateString, and UnixTime.
-use Date::Manip;
=head1 NAME
@@ -112,15 +108,14 @@ non-zero - failure
=cut
-# Set a base date with the current time in the current TZ:
-my $base_date = new Date::Manip::Date;
-$base_date->parse("now");
-
# The methods we know about. For now we assume they all have the same
# signature so this works OK.
sub check_modules {
- my @modules = qw(Finance::Quote Date::Manip);
+
+# Date::Manip provides ParseDate, ParseDateString, and UnixTime.
+
+ my @modules = qw(FileHandle Finance::Quote Date::Manip);
my @missing;
foreach my $mod (@modules) {
@@ -149,6 +144,13 @@ sub check_modules {
exit 1;
}
+# Check for and load non-standard modules
+check_modules ();
+
+# Set a base date with the current time in the current TZ:
+my $base_date = new Date::Manip::Date;
+$base_date->parse("now");
+
sub schemify_string {
my($str) = @_;
@@ -319,9 +321,6 @@ sub parse_input_line {
#---------------------------------------------------------------------------
# Runtime.
-# Check for and load non-standard modules
-check_modules ();
-
# Create a stockquote object.
my $quoter = Finance::Quote->new();
my $prgnam = "gnc-fq-helper";
Summary of changes:
bindings/python/gnucash_business.py | 2 +-
libgnucash/quotes/gnc-fq-helper.in | 23 +++++++++++------------
2 files changed, 12 insertions(+), 13 deletions(-)
More information about the gnucash-changes
mailing list