r22164 - gnucash/trunk/src/optional/python-bindings/example_scripts - Bug #673855 - fixes and enhancements to example script new_book_with_opening_balances.py
Geert Janssens
gjanssens at code.gnucash.org
Sat Apr 28 09:36:57 EDT 2012
Author: gjanssens
Date: 2012-04-28 09:36:55 -0400 (Sat, 28 Apr 2012)
New Revision: 22164
Trac: http://svn.gnucash.org/trac/changeset/22164
Modified:
gnucash/trunk/src/optional/python-bindings/example_scripts/new_book_with_opening_balances.py
Log:
Bug #673855 - fixes and enhancements to example script new_book_with_opening_balances.py
1) Fixed typo for "new book" session creation in_new=True -> is_new=True
2) Added usage information echo when script is invoked without correct number
of parameters
3) Put most of the operations into an exception handling block. When an
exception occurs, sessions which were opened are closed. Prior to this, any
error would result in a lingering lock.
Patch by Jamie Campbell
More information about the gnucash-patches
mailing list