[PATCH] lookup_by_code() in python bindings
Daniele Varrazzo
daniele.varrazzo at gmail.com
Thu Jul 29 11:51:13 EDT 2010
Hello,
in Python bindings the method 'Accounts.lookup_by_code()' has no
return value information, so a raw SWIG object is returned instead of
an Account instance.
The patch below fixes the issue. Regards.
-- Daniele
--- src/optional/python-bindings/gnucash_core.py (revision 19381)
+++ src/optional/python-bindings/gnucash_core.py (working copy)
@@ -450,6 +450,7 @@
'get_parent' : Account,
'get_root' : Account,
'nth_child' : Account,
+ 'lookup_by_code' : Account,
'lookup_by_name' : Account,
'lookup_by_full_name' : Account,
'FindTransByDesc' : Transaction,
More information about the gnucash-devel
mailing list