allow keyword arguments for function_class methods
and functions. process_dict_convert_to_instance() is added to
mimic the behavior of the process_list_convert_to_instance()
Derived methods in gnucash_core.py like raise_backend_errors_after_call
get modified to accept being called with keyword args.
Also adds some docstrings.
the deprecation submodule will house content related to deprecation.
That is general convenience function and functions related to specific
deprecation issues. The latter starts with decorator functions to bridge
the change in qof_session_begin argument change to SessionOpenMode.
when database already exists.
Crashed because of dereferencing GncSqlBackend::m_conn when it's nullptr
after the DB create failed. Protect all such dereferences.
subtle bug here-- used string-hash to convert guid-string to a number
which is faster to use as hash key. but string-hash does not guarantee
that there are no hash collisions. it is best to use guid string
instead which is guaranteed to uniquely define a split.
When the New Account Hierarchy Assistant is used, the book options are
added to the assistant as a notebook page and so will not have a parent
widget to be used when restoring the window size so test for parent
before using gnc_restore_window_size
This is useful for cli to show Multicolumn report with subreports.
e.g.
* guid: 2f17ecb535f24a3a9f314bc5855569e5
General / Number of columns: 2.0
General / Report name: A saved-report based on nmulticolumn-view
General / Stylesheet: Easy
Embedded Report: Welcome to GnuCash
Embedded Report: Balance Sheet
* guid: d8ba4a2e89e8479ca9f6eccdeb164588
The value-collector is only used to tally account balances for
asset&liability accounts. These accounts never have closing
entries. No need to test closing property.
This fixes the presence of the 'input-file' command line option.
It's an implementation detail that wasn't meant to be listed in help.
The way to fix it is keeping two option_description variables. One
with all possible values to parse and one with only those to present
to the user
AlphaVantage API Key is needed for all currency quotes
and stock quotes with source 'alphavantage' or 'vanguard' or
multi sources that include 'alphavantage'.
Give an error message instead of failing with no reason.
AlphaVantage API Key is needed for all currency quotes
and stock quotes with source 'alphavantage' or 'vanguard' or
multi sources that include 'alphavantage'
This commit makes gnucash-cli a console application on Windows which
means it's output will be redirected to the connected console.
This works both in cmd.exe and in powershell.
gnucash itself remains a Windows GUI application and hence won't output
to console. To capture its output one needs to start it from cmd.exe
(not powershell!) as follows
'path-to-gnucash.exe' >'file-for-stdout' 2>'file-for-stderr'
'file-for-stdout' and 'file-for-stderr' are the names file two arbitrary
files the user has write access to. They don't have to exist beforehand.
Note 'file-for-stderr' can be set to '&1' (without the single quotes)
to redirect everything on stderr to wherever stdout goes.