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 warl...@mit.edu wrote: John Ralls jra...@ceridwen.us 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.

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 warl...@mit.edu wrote: Sébastien de Menten sdemen...@gmail.com 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

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 a...@ufl.edu 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

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 sdemen...@gmail.com 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

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 a...@ufl.edu wrote: On 11/13/2014 07:41 PM, John Ralls wrote: On Nov 13, 2014, at 1:15 PM, Allen S. Rout a...@ufl.edu wrote: No. You’ll need to script your interaction in Scheme or Python, I've been working with the Python APIs for

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 a...@ufl.edu 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 c.holterm...@gmx.de 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

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

Re: python GnuCash interface to SQL backend

2014-11-14 Thread Sébastien de Menten
On Friday, November 14, 2014, John Ralls jra...@ceridwen.us wrote: On Nov 14, 2014, at 4:28 AM, Sébastien de Menten sdemen...@gmail.com javascript:_e(%7B%7D,'cvml','sdemen...@gmail.com'); wrote: In terms of the implementation itself of the object model, the main things I see not that clean