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: Working example of kvp acess in Python

2014-11-13 Thread Christoph Holtermann
Hello, Am 13.11.2014 um 03:05 schrieb John Ralls: On Nov 12, 2014, at 3:56 PM, Christoph Holtermann c.holterm...@gmx.de wrote: Hello, for my part i answered some of the questions myself: Am 12.11.2014 um 18:46 schrieb Christoph Holtermann: Hello, so KVPs should be accessed by objects

Re: Working example of kvp acess in Python

2014-11-13 Thread Christian Stimming (mobil)
From my understanding, there are two separate issues here: 1. You are proposing a new object Company because you have reasons for needing new data fields. I think that's a good idea. Why don't you prepare a patch to extend the existing objects? 2. You ask for kvp access from python. No, we

Re: Working example of kvp acess in Python

2014-11-13 Thread Christoph Holtermann
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: 1. You are proposing a new object Company because you have reasons for needing new data fields. I think that's a good

Re: Working example of kvp acess in Python

2014-11-12 Thread Christoph Holtermann
Hello, so KVPs should be accessed by objects they belong to and not from the outside. Some questions: * Is it legitimate to have KVP representation in Python at all or is this low-level und should remain to the c-api ? * The information that I'm interested in is the company data for invoices. As

Company data and KVP, was Re: Working example of kvp acess in Python

2014-11-12 Thread Christoph Holtermann
Hello, one thing I miss when creating an invoice is my bank information. The company data doesn't have this information, does it ? Having a look at the customer data shows that there is also no bank account information. Wouldn't it be useful to have a preferred bank account there, too ? Or did I

Re: Working example of kvp acess in Python

2014-11-12 Thread Christoph Holtermann
Hello, for my part i answered some of the questions myself: Am 12.11.2014 um 18:46 schrieb Christoph Holtermann: Hello, so KVPs should be accessed by objects they belong to and not from the outside. Some questions: * Is it legitimate to have KVP representation in Python at all or is this

Re: Working example of kvp acess in Python

2014-11-12 Thread John Ralls
On Nov 12, 2014, at 3:56 PM, Christoph Holtermann c.holterm...@gmx.de wrote: Hello, for my part i answered some of the questions myself: Am 12.11.2014 um 18:46 schrieb Christoph Holtermann: Hello, so KVPs should be accessed by objects they belong to and not from the outside. Some

Re: Working example of kvp acess in Python

2014-06-12 Thread Christoph Holtermann
Am 10.06.2014 18:02, schrieb John Ralls: On Jun 10, 2014, at 8:24 AM, David Osguthorpe wrote: On Mon, Jun 09, 2014 at 12:53:38AM +0200, Christoph Holtermann wrote: Hello, for my python latex invoice script I tried to access the owners data. I tried to work my way to it and came across the

Re: Working example of kvp acess in Python

2014-06-12 Thread John Ralls
On Jun 12, 2014, at 2:17 PM, Christoph Holtermann c.holterm...@gmx.de wrote: Even now i find it a bit difficult to get to the kvp layer. I tried to get to the transactions kvps ( https://github.com/c-holtermann/gnucash/commit/636631027d0f8833b3d1b7d8a8c1271ce5f8449e ) and ended up

Re: Working example of kvp acess in Python

2014-06-10 Thread David Osguthorpe
On Mon, Jun 09, 2014 at 12:53:38AM +0200, Christoph Holtermann wrote: Hello, for my python latex invoice script I tried to access the owners data. I tried to work my way to it and came across the kvp system. I made a rude path through there with a working example to access the companies

Re: Working example of kvp acess in Python

2014-06-10 Thread John Ralls
On Jun 10, 2014, at 8:24 AM, David Osguthorpe wrote: On Mon, Jun 09, 2014 at 12:53:38AM +0200, Christoph Holtermann wrote: Hello, for my python latex invoice script I tried to access the owners data. I tried to work my way to it and came across the kvp system. I made a rude path through

Working example of kvp acess in Python

2014-06-08 Thread Christoph Holtermann
Hello, for my python latex invoice script I tried to access the owners data. I tried to work my way to it and came across the kvp system. I made a rude path through there with a working example to access the companies data. If someone is interested in clarifying the swig qof_instance and