Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
First of all, thank you John for taking the time to answer to this thread ! > > If you see GnuCash from the (limited) perspective of an editor for a > Book document (as LibreOffice Writer is an editor for a ODT document), > object persistence is central. And luckily we have both a very clean and

Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
On Fri, Nov 14, 2014 at 3:33 AM, Derek Atkins wrote: > John Ralls writes: > > > What’s your goal here? I don’t think that reimplementing GnuCash in > > Python with GnuCash’s SQL schema is a particularly good approach: It’s > > not exactly the most efficient design. Rather, it’s designed to mirro

Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
On Fri, Nov 14, 2014 at 3:31 AM, Derek Atkins wrote: > Sébastien de Menten writes: > > > Where could I find detailed documentation on the GnuCash engine (and the > > constrains/invariants GnuCash enforces) ? Or would there be some > > code/program to check a GnuCash file is "sane/consistent" ? >

Re: Submit a payment from somewhere not in the GUI...

2014-11-14 Thread Allen S. Rout
On 11/13/2014 07:41 PM, John Ralls wrote: > On Nov 13, 2014, at 1:15 PM, Allen S. Rout wrote: > >> > > No. You’ll need to script your interaction in Scheme or Python, I've been working with the Python APIs for insertion of invoices, and modification of customers. I can't see anything that loo

Re: python GnuCash interface to SQL backend

2014-11-14 Thread John Ralls
> On Nov 14, 2014, at 4:28 AM, Sébastien de Menten wrote: > > First of all, thank you John for taking the time to answer to this thread ! > > > > If you see GnuCash from the (limited) perspective of an editor for a Book > > document (as LibreOffice Writer is an editor for a ODT document), obj

Re: Submit a payment from somewhere not in the GUI...

2014-11-14 Thread John Ralls
> On Nov 14, 2014, at 5:00 AM, Allen S. Rout wrote: > > On 11/13/2014 07:41 PM, John Ralls wrote: >> On Nov 13, 2014, at 1:15 PM, Allen S. Rout wrote: >> >>> >> >> No. You’ll need to script your interaction in Scheme or Python, > > I've been working with the Python APIs for insertion of inv

Re: Submit a payment from somewhere not in the GUI...

2014-11-14 Thread Allen S. Rout
On 11/14/2014 10:37 AM, John Ralls wrote: > >> On Nov 14, 2014, at 5:00 AM, Allen S. Rout wrote: >> > > Ah, from your original question it sounded like you wanted to pass > arguments to the command line. > > I don't know what you mean by "hooks for payments", The python includes bindings to

Re: Working example of kvp acess in Python

2014-11-14 Thread Christoph Holtermann
Hello, Am 13.11.2014 um 19:56 schrieb John Ralls: > On Nov 13, 2014, at 10:46 AM, Christoph Holtermann > wrote: > >> Am 13.11.2014 um 18:55 schrieb Christoph Holtermann: >>> Am 13.11.2014 um 17:50 schrieb Christian Stimming (mobil): From my understanding, there are two separate issues here:

Re: Submit a payment from somewhere not in the GUI...

2014-11-14 Thread Tom Lofts
Hi Allen, As part of some of the work I've been doing to create a REST like API via the Python bindings I've also been trying to make payments via the Python API. I think I've managed to find out how this is intended to be done but can't quite get it to work. The relevant function in the G

Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
On Friday, November 14, 2014, John Ralls wrote: > > On Nov 14, 2014, at 4:28 AM, Sébastien de Menten > wrote: > > > In terms of the implementation itself of the object model, the main things > I see not that clean are: > - KVP vs field representation > - XXX_denom / XXX_num split (instead of usi