On Sat, May 31, 2014 at 12:27:25PM -0700, John Ralls wrote:
> 
> Why not instead add python to the swig files for the API that you need? It's 
> only one header, gnc-budget.h, and you can use the Guile adapter code in 
> src/engine/engine.i as a guide.
> 

not quite as simple as this - I added gnc-budget.h to gnucash_core.i
- yes you get the GncBudget bindings but you also need access to Reccurence.h 
which uses GDates
which needs adding a gdate.i for type wrapping

plus the only budget lookup function in GncBudget does it by GUID
- to lookup by budget name needs a Qof Query - yes the qof query bindings
exist but the result of query run is a GList of arbitrary type objects
which I didnt figure a good way of retyping so far - except by assuming
all GList entries are budgets and creating a wrapper to the base
query run to which the GList entry type is passed
- but still dont really like this yet

David
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to