Re: display book path in report

2017-02-17 Thread Derek Atkins
There is a C API, gnc_get_current_session() defined in gnc-session.h which you could wrap in engine.i to get gnc-get-current-session, which you could then use to get call qof-session-get-url. It would be a small change to engine.i to wrap the function. Just copy the existing wrappers for e.g.

Re: display book path in report

2017-02-17 Thread Sébastien de Menten
If only I knew how to do this ! I can't find the proper documentation ... help much appreciated ! On Feb 17, 2017 22:14, "Derek Atkins" wrote: > Actually, qof-session-get-url is already wrapped in the engine module. > Also, there is already a (gnc-get-current-book). So all you

Re: display book path in report

2017-02-17 Thread Derek Atkins
Actually, qof-session-get-url is already wrapped in the engine module. Also, there is already a (gnc-get-current-book). So all you need to do is find (or add) an API to get the current session from the current book. -derek On Fri, February 17, 2017 4:01 pm, Sébastien de Menten wrote: > I can

Re: display book path in report

2017-02-17 Thread Geert Janssens
Not an answer to your question, rather a small request. You (rightfully) moved the thread from gnucash-user to gnucash-devel because it's now discussing missing functions in the guile bindings. It think this is a good moment to stop cross-posting to gnucash-user as well. Can you remove this

Re: cpp branch

2017-02-17 Thread Geert Janssens
Op zondag 12 februari 2017 11:50:35 CET schreef Robert Fewell: > Geert, > > OK I got your latest changes and all built and ran OK. Needed to reread > your comment about dates as I could not see what gnc_numeric had to do with > it !! Well, they don't. I'm mixing two issues in one... > Some

Re: display book path in report

2017-02-17 Thread Sébastien de Menten
I can access a function named qof-session-get-url which expects a session. However, to get a session, I can only see a qof-session-new that creates a new session. There is a gnc_get_current_session function but I can't find how to integrate it in the swig-engine.c file that is generated by swig.

Re: display book path in report

2017-02-17 Thread Derek Atkins
Hard to say. I don't know what other dependencies would need to be brought in. You'd certainly need to rebuild GnuCash! -derek Sébastien de Menten writes: > Is it complex to add it ? > > On Feb 16, 2017 16:11, "Derek Atkins" wrote: > > OOPS.  You are