Re: [PATCH] [REVIEW] python bindings and lost business data

2010-06-13 Thread Mike Evans
On Thursday June 10 2010 00:53:44 Mark Jenkins wrote: > > Back to bug killing. > > I came up with the attached patch to stop business objects from being lost. > > The modules "gnucash/business-core-xml" and "gnucash/business-core-sql" > are now loaded. > > I've tested this with > > >>> from gnu

Re: [PATCH] [REVIEW] python bindings and lost business data

2010-06-12 Thread Christian Stimming
Am Thursday 10 June 2010 schrieb Mark Jenkins: > This, and the linking decisions in Makefile.am are the most critical > elements of the python bindings. (...) > > With this patch, this init section in gnucash_core.i becomes: > g_type_init(); > scm_init_guile(); > gnc_module_load("gnucash/engine",

Re: [PATCH] [REVIEW] python bindings and lost business data

2010-06-09 Thread Mark Jenkins
> Back to bug killing. I came up with the attached patch to stop business objects from being lost. The modules "gnucash/business-core-xml" and "gnucash/business-core-sql" are now loaded. I've tested this with >>> from gnucash import Session >>> s = Session('sqlite3:///full_path_to_file') >>> s.s

Re: python bindings and lost business data

2010-06-09 Thread Geert Janssens
On Wednesday 9 June 2010, Mark Jenkins wrote: > > On Wednesday 9 June 2010, Mike Evans wrote: > >> However the > >> business objects do not seem to be loaded/saved so when session.save() > >> is called all the business data, customers etc., are lost. It doesn't > >> matter if I use the mysql or

Re: python bindings and lost business data

2010-06-09 Thread Mark Jenkins
> On Wednesday 9 June 2010, Mike Evans wrote: >> However the >> business objects do not seem to be loaded/saved so when session.save() is >> called all the business data, customers etc., are lost. It doesn't >> matter if I use the mysql or xml backend. Any thoughts? I was actually working on