Re: python binding: getting invoice entry data

2011-01-19 Thread Christoph Holtermann
Hello ! Am 19.01.2011 05:16, schrieb Brian St. Pierre: I'm trying to use the python bindings to fetch entry (line-item) data from an invoice. See http://pastebin.com/fy06CPup for the test GnuCash XML file I'm using. I expect the script below to print the three line items from the invoice

Re: python binding: getting invoice entry data

2011-01-19 Thread Brian St. Pierre
On Wed, Jan 19, 2011 at 7:14 AM, Christoph Holtermann c.holterm...@gmx.de wrote: Am 19.01.2011 05:16, schrieb Brian St. Pierre: I'm trying to use the python bindings to fetch entry (line-item) data from an invoice. Can someone point out what I'm doing wrong? You just encountered an open end

Re: python binding: getting invoice entry data

2011-01-19 Thread Brian St. Pierre
I opened a bug and attached a patch that seems to fix the problem: https://bugzilla.gnome.org/show_bug.cgi?id=639980 There is a similar piece of code in src/optional/python-bindings/glib.i, but changing this did not seem to have an effect. -Brian

python binding: getting invoice entry data

2011-01-18 Thread Brian St. Pierre
I'm trying to use the python bindings to fetch entry (line-item) data from an invoice. See http://pastebin.com/fy06CPup for the test GnuCash XML file I'm using. I expect the script below to print the three line items from the invoice in that file, but instead it dies with: % gnucash-env python