Re: [GNC] unable to iterate accounts with API Python bindings

2024-10-27 Thread Noerr via gnucash-user
> The manual does not say what "the table" is, but I understand it to mean > the list of transactions itself. > > Does this work for you? > > Best regards, > ??? ?Jim DeLaHunt > > > -- > > Message: 5 > Date: Sun, 27 Oct

Re: [GNC] unable to iterate accounts with API Python bindings

2024-10-26 Thread John Ralls
> On Oct 26, 2024, at 4:59 PM, John Ralls wrote: > > Now to revisit getting the Session constructor to load xml files since I > obviously got that wrong. > Which I've now done, and pushed the result. Noah, if you built GnuCash from git, please pull and rebuild. The added `session.load()` s

Re: [GNC] unable to iterate accounts with API Python bindings

2024-10-26 Thread John Ralls
Jon, Thanks for digging into it. Reporting that Noah's script works for you in GnuCash 5.5 was very helpful because there's been only one change to the bindings since then: I removed a load call from the Session constructor to fix bug 799308. That wasn't exactly the right thing to do, but it's

Re: [GNC] unable to iterate accounts with API Python bindings

2024-10-26 Thread Jon Schewe
Noah and I traded a couple of messages directly about this off-list. I tried reading Noah's file and and it worked just fine, get_children showed the accounts; on their computer it did not. I was using the python bindings for GNuCash 5.5 that are shipped with Ubuntu 24.04. I don't know how to get t

Re: [GNC] unable to iterate accounts with API Python bindings

2024-10-25 Thread Jon Schewe
You want "get_children" instead of "get_descendents". On Thu, 2024-10-24 at 21:51 -0700, Noerr via gnucash-user wrote: > Hi, > > I've been trying to get started with the GnuCash API Python > bindings > after just using the main desktop app for the last 12 years. > I built GnuCash app (Build