[PATCH] python bindings -- nice example scripts and more accessible constants

Mark Jenkins mark at parit.ca
Fri Jun 25 12:22:04 EDT 2010


Hello again, gnucash-devel.

I submitted the two attached patches previously, but I do so again
because one prior submission has now become obsolete [with respect to
easy application without conflicts] due to r19293 and r19293, the other
old one applies less cleanly.

(folks will be glad to know that due to r19293 and r19293, business
objects no longer disappear, python bindings are more stable, and
invoice creation is now possible. Thanks to Geert for the commit)

The patches attached are feature enhancements -- I understand we're
avoiding feature enhancements to get 2.4 out, but I'd recommend the
inclusion of these two because they're unlikely to introduce any new
bugs (and I've been testing them for awhile) and they will make the
python bindings easier to use for 2.4 users:
 * The first patch (nice_example_python_scripts.patch) provides more
documentation in the form of new example scripts

 * The second patch
(python_bindings_gncnumeric_and_accounttype_constants.patch) makes the
GncNumeric and AccountType constants available like so
>>> from gnucash import ACCT_TYPE_LIABILITY
in addition to the lower level
>>> from gnucash.gnucash_core_c import ACCT_TYPE_LIABILITY
Some documentation with respect to these constants is added as well



Mark Jenkins

cc fellow ParIT members
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nice_example_python_scripts.patch
Type: text/x-diff
Size: 25708 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20100625/983ffc87/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python_bindings_gncnumeric_and_accounttype_constants.patch
Type: text/x-diff
Size: 3621 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20100625/983ffc87/attachment-0001.bin>


More information about the gnucash-devel mailing list