Re: display book path in report

2017-02-18 Thread John Ralls
> On Feb 18, 2017, at 7:19 AM, Sébastien de Menten wrote: > > I send a pull request for this very small change. > > btw, when downloading the compressed sources, the swig files are already > generated so changing *.i files have no impact which was a bit tricky to >

Re: display book path in report

2017-02-18 Thread Sébastien de Menten
I send a pull request for this very small change. btw, when downloading the compressed sources, the swig files are already generated so changing *.i files have no impact which was a bit tricky to understand On Fri, Feb 17, 2017 at 10:36 PM, Derek Atkins wrote: > There is a C

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: 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

Re: display book path in report

2017-02-16 Thread Sébastien de Menten
Is it complex to add it ? On Feb 16, 2017 16:11, "Derek Atkins" wrote: > OOPS. You are correct. > There is no scheme binding for this API. > Sorry. > > -derek > > Sébastien de Menten writes: > > > I went to look for the file you mentioned and I see it