r22977 - gnucash/trunk/src/optional/python-bindings - Bug #700197 - Critical SQL backend errors when creating customers via python bindings
Mike Evans
mikee at code.gnucash.org
Mon May 13 04:34:06 EDT 2013
Author: mikee
Date: 2013-05-13 04:34:06 -0400 (Mon, 13 May 2013)
New Revision: 22977
Trac: http://svn.gnucash.org/trac/changeset/22977
Modified:
gnucash/trunk/src/optional/python-bindings/gnucash_business.py
Log:
Bug #700197 - Critical SQL backend errors when creating customers via python bindings
Patch supplied by the reporter Tom Lofts.
Modified: gnucash/trunk/src/optional/python-bindings/gnucash_business.py
===================================================================
--- gnucash/trunk/src/optional/python-bindings/gnucash_business.py 2013-05-12 03:41:41 UTC (rev 22976)
+++ gnucash/trunk/src/optional/python-bindings/gnucash_business.py 2013-05-13 08:34:06 UTC (rev 22977)
@@ -56,10 +56,12 @@
"with either a book, id, and currency, or an existing "
"low level swig proxy in the argument instance")
GnuCashCoreClass.__init__(self, book)
+ self.BeginEdit()
self.SetID(id)
self.SetCurrency(currency)
if name != None:
self.SetName(name)
+ self.CommitEdit()
else:
GnuCashCoreClass.__init__(self, instance=instance)
More information about the gnucash-changes
mailing list