Python Bindings and Backends
Christian Stimming
stimming at tuhh.de
Sat Nov 13 16:46:22 EST 2010
Am Samstag, 13. November 2010 schrieb Mike Evans:
> On Friday November 12 2010 22:17:41 John Ralls wrote:
> > I noticed, while working on the python bindings, that it pulls in and
> > attempts to init the xml and dbi backends. That's wrong for several
> > reasons which I've documented in
> > https://bugzilla.gnome.org/show_bug.cgi?id=634712.
> >
> > I've written a patch to remove the gnc_module_backend_init_foo() calls
> > from gnucash_core.i and the associated stuff from the Makefile. It works
> > with simple_test.py in example_scripts, but I'd like at least one of the
> > regular python users to test-drive it before I commit it.
> >
> > Regards,
> > John Ralls
> >
> > _______________________________________________
>
> Hi John
>
> Bad news I'm afraid, your patch breaks my script with the following output:
The patch above probably doesn't work because the backend modules are no
longer being initialized, which is because the initialization function
engine_init() is not used from within the python bindings, and intentionally
so. I would like to continue the discussion in the bug, though.
Regards,
Christian
More information about the gnucash-devel
mailing list