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

Geert Janssens janssens-geert at telenet.be
Wed Jun 30 15:33:29 EDT 2010


On Friday 25 June 2010, Mark Jenkins wrote:
> 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
> 
Hi,

Thank you for these patches. I have applied them even in the light of the 
focus on getting 2.4 out, simply because I don't think they will interfere 
with the stability of the main application.

The example scripts make the python bindings easier to understand for 
potential users, the gnumeric and accounttype constants make it easier to use. 
So they make good additions.

Geert


More information about the gnucash-devel mailing list