Custom Reports

Derek Atkins warlord at MIT.EDU
Thu Jan 25 14:55:44 EST 2007


Quoting Doug Latornell <doug-gnucash at sadahome.ca>:

> On 1/25/07, Derek Atkins <warlord at mit.edu> wrote:
[snip]
>> I think just doing something like this in ~/.gnucash/config.user
>> will do the trick in 2.0:
>>
>> (load-file "/path/to/my/personal/report.scm")

Sorry, this should be:

  (load-from-path "/path/to/my/personal/report.scm")

>> Note that this hasn't been tested.

I've just tested it an it works fine...

[snip]
> <unnamed port>: In procedure scm-error in expression (scm-error (quote
> misc-error) #f ...):
> <unnamed port>: no code for module (gnucash report foobar2)

You don't need the "define module" part if you're loading the scheme
file directly from ~/.gnucash/config.user.

> Note that creating foobar.scm in
> /opt/local/share/gnucash/guile-modules/gnucash/report/ and registering it in
> standard-reports.scm works fine for me, but as Josh noted, that's mucking
> about in the install-tree, and I get what I deserve if I mess thing up...
> :-)

Yep, and putting it into config.user does work, I just gave the wrong scheme
function to load it.  Mea Culpa.

> Doug

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-user mailing list