Re: Easier reports with eguile-gnc

2009-04-06 Thread Chris Dennis
: ...and if the intervening gnc-document step could be removed, ... I've got a very simple patch for this, which allows a report to return HTML as a string, rather than returning a gnc-document. cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingb

Re: Webkit status (updated)

2009-04-06 Thread Chris Dennis
Is there any way that a report (i.e. Guile code) can find out whether Webkit or GtkHTML is in use? If there is, the report could adjust itself accordingly, relying on CSS if available, and doing its best without CSS if not. cheers Chris -- Chris Dennis cgden

Re: Reports

2009-05-05 Thread Chris Dennis
heers Chris Phil ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel

eguile-based reports -- progress

2009-05-26 Thread Chris Dennis
nicely is tricky... cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Re: eguile-based reports -- progress

2009-06-01 Thread Chris Dennis
Phil Longstaff wrote: The result invoice looks *really* nice :) 2.3.0 has the webkit branch merged in. I think there are no issues on linux and macosx, but am not sure about windows yet. Phil Thanks for that Phil. One issue I've found with using eguile and webkit is that the report syst

Re: eguile-based reports -- progress

2009-06-01 Thread Chris Dennis
Chris Dennis wrote: Phil Longstaff wrote: The result invoice looks *really* nice :) 2.3.0 has the webkit branch merged in. I think there are no issues on linux and macosx, but am not sure about windows yet. Phil Thanks for that Phil. One issue I've found with using eguile and webk

Re: r18103 - gnucash/trunk/src - Fix bug #584819: Company name is not shown by default on some reports. Patch by Chris Dennis.

2009-06-05 Thread Chris Dennis
quity-statement.scm gnucash/trunk/src/report/standard-reports/income-statement.scm gnucash/trunk/src/report/standard-reports/trial-balance.scm Log: Fix bug #584819: Company name is not shown by default on some reports. Patch by Chris Dennis. ___ gnucash-pa

Re: Dynamically adding reports

2009-06-14 Thread Chris Dennis
ate (in-vicinity (in-vicinity home userdir) fname))) (if (access? home-template R_OK) home-template (or (%search-load-path (in-vicinity sysdir fname)) fname) cheers Chris -- Chris Dennis cgden...@btinternet.com Fordi

eguile reports again

2009-06-19 Thread Chris Dennis
pment / sharing / documentation of eguile reports? Should that be part of the existing 'Custom Reports' page, or somewhere else? cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK

Re: eguile reports again

2009-06-21 Thread Chris Dennis
On Fri, 2009-06-19 at 20:23 -0400, Phil Longstaff wrote: > On June 19, 2009 06:53:46 pm Chris Dennis wrote: > > Hello folks > > > > Firstly, I've added a new version of eguile-gnc.scm itself to bug > > 574582. The only change is improved error reporting. eg

Syntax Highlighting on the GnuCash Wiki?

2009-06-21 Thread Chris Dennis
Hello folks Source code syntax highlighting doesn't seem to work on the GnuCash wiki. Can the SyntaxHighlight_GeSHi extension be added / enabled? cheers Chris ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman

Re: eguile reports again

2009-06-22 Thread Chris Dennis
Phil Longstaff wrote: On June 21, 2009 05:32:03 pm Chris Dennis wrote: That's correct. It defines itself as (define-module (gnucash report eguile-gnc)) so it should go in the src/report/report-system/gnucash/report directory (unless someone thinks otherwise). Submitted as r18150

Re: eguile reports again

2009-06-22 Thread Chris Dennis
Derek Atkins wrote: Chris Dennis writes: Secondly, I've created an eguile version of a balance sheet report. The layout is more to my taste than the standard one (I realise that there are many ways to lay out a balance sheet.) The report includes a way of pre-processing a list of acc

Re: Invoices

2009-06-30 Thread Chris Dennis
s" and "small" or "10pt"), and then Webkit will use that. cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-devel@gnucash

Re: Fonts (was Re: Invoices)

2009-06-30 Thread Chris Dennis
x invoice can go into 2.4 even if only as an example of what can be done with webkit and eguile. cheers Chris Phil ________ From: Chris Dennis To: Phil Longstaff Sent: Tuesday, June 30, 2009 3:09:31 PM Subject: Re: Invoices Phil Longstaff wrote: Chris, what d

Re: Problem with eguile balance sheet

2009-06-30 Thread Chris Dennis
name. Anyway, I've attached a new version of balsheet-eg.scm to the bug report at http://bugzilla.gnome.org/show_bug.cgi?id=574582 Please give that a go. cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Ham

Re: Problem with eguile balance sheet

2009-07-01 Thread Chris Dennis
eased GnuCash packages. I see that the wiki doesn't allow files to be uploaded. Can that be changed? Or is there somewhere better to put these files? cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___

Re: Problem with eguile balance sheet

2009-07-01 Thread Chris Dennis
Derek Atkins wrote: Chris Dennis writes: BTW, is there somewhere better than the bug report for storing these report files? Hopefully we'll collect a whole range of reports and templates that users have developed, not all of which should necessarily be in the released GnuCash package

Re: Problem with eguile balance sheet

2009-07-01 Thread Chris Dennis
Phil Longstaff wrote: On July 1, 2009 05:20:50 am Chris Dennis wrote: > Phil Longstaff wrote: > >... > > > > I changed notespage to notes-page in 2 places. Now I get: > >... > > > > 133: 25* (sub-vicinity (user-vicinity) ".gnucash") &

Re: Requirements for 2.4.0

2009-07-08 Thread Chris Dennis
or #3 (eguile): * I'd like to see Chris Dennis' new invoice/template replace the current invoice. I think this would give users better ability to modify the invoice format. Note that there is a bug (can't find it right now) complaining that a new installation overwrites invoice custom

Re: CSS in reports

2009-07-11 Thread Chris Dennis
_ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-

Re: CSS in reports

2009-07-12 Thread Chris Dennis
ld start to see the possibilities. Quite right. Phil cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mail

Re: Modify Invoice Templates

2009-07-22 Thread Chris Dennis
ebkit replacement for gtkhtml as the report display engine 2) work by Chris Dennis to define an html/css template for an invoice that includes embedded SCM code to insert the data. Since I'm the 2.3.X/2.4 release engineer, I've worked with him a bit to get it included in the release so that

Re: Modify Invoice Templates

2009-07-22 Thread Chris Dennis
l, I can't remember), an unstable version that will be released tomorrow or Thursday, contains 1) webkit replacement for gtkhtml as the report display engine 2) work by Chris Dennis to define an html/css template for an invoice that includes embedded SCM code to insert the data. Since I&

Re: CSS in reports

2009-07-23 Thread Chris Dennis
Phil Longstaff wrote: > On July 12, 2009 07:02:18 am Chris Dennis wrote: >> Phil Longstaff wrote: >>> You're right that any styling can be used. What I will probably do is >>> have 2 options pages, one for styling and one for fonts, and then >>> combin

Re: eguile reports again

2009-07-27 Thread Chris Dennis
Derek Atkins wrote: Quoting Chris Dennis : Might it make sense to add some of these pre-processing procedures that you expect to be shared into a shared file, like the report utilities? Reusable, shared code is a good thing.. Especially if it makes writing new reports easier. -derek Yes

use-modules, gnc:module-load etc.

2009-07-28 Thread Chris Dennis
modules'? What about 'load-from-path'? Is there a quick way of determining what I need to use gnc-numeric-to-double (which is just a Swig-wrapped C routine). cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK

Tax Invoice

2009-07-30 Thread Chris Dennis
Hello folks I've created a patch to add the eguile-based Tax Invoice report to SVN -- see bug http://bugzilla.gnome.org/show_bug.cgi?id=590332 Hopefully I've included all the right bits. cheers Chris -- Chris Dennis cgden...@btinternet.com For

Re: Common code indentation (follow-up to 2007 discussion)

2009-08-14 Thread Chris Dennis
the beholder. :) Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Re: Model of report

2009-09-02 Thread Chris Dennis
ect myself, but I'd be happy to help people get started. cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnuc

error: implicit declaration of function ‘webkit_w eb_view_load_uri’

2010-04-09 Thread Chris Dennis
[gnc-html-webkit.lo] Error 1 Is this a known problem? Would upgrading Ubuntu to 9.10 help? cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-

Re: error: implicit declaration of function ‘webk it_web_view_load_uri’

2010-04-11 Thread Chris Dennis
Geert Janssens wrote: On Friday 9 April 2010, Chris Dennis wrote: I've just tried to build the latest trunk (19006) on Ubuntu 8.10, and got this message: cc1: warnings being treated as errors gnc-html-webkit.c: In function ‘impl_webkit_show_data’: gnc-html-webkit.c:702: error: imp

Re: Bug 616697 - string "Payment rec'd..." should be more cleared. (in taxinvoice.scm)

2010-05-28 Thread Chris Dennis
ember exactly how those macros work. Frank cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Tax Invoice fails in 2.3.13 -- eguile requires slib

2010-06-04 Thread Chris Dennis
(user-vicinity) ".gnucash") /usr/local/gnucash-svn-feb10/share/gnucash/guile-modules/gnucash/report/eguile-utilities.scm:85:19: In expression (sub-vicinity (user-vicinity) ".gnucash"): /usr/local/gnucash-svn-feb10/share/gnucash/guile-modules/gnucash/report/eguile-utilities.sc

Re: Eguile reports and css

2010-11-30 Thread Chris Dennis
utput. Any advise. Fedora12 with GnuCash from SVN. Mike I've now filed this as bug 636118 CSS stylesheets only work if Gnucash is compiled with the '--with-html-engine=webkit' option, and I don't think that's the default. cheers Chris -- Chris Dennis

Re: Request for some Enhancements of Gnucash

2008-12-29 Thread Chris Dennis
roblem for me too. I am now in a position to put some work into improving it, but before I do, I'd like to know if anyone else is working on this area, and whether there's a road-map or any sort of strategy in place already. And is there any documentation on the API? che

Re: Request for some Enhancements of Gnucash

2009-01-02 Thread Chris Dennis
Christian Stimming wrote: > Am Montag, 29. Dezember 2008 10:10 schrieb Chris Dennis: >>> 5. GIVE THE ABILITY TO EASY CREATE AND IMPORT REPORTS >>> - Without knowledge of scheme programming: create the report in another >>> format (XML ?), translated in scheme by g

Re: Request for some Enhancements of Gnucash

2009-01-04 Thread Chris Dennis
Derek Atkins wrote: > Quoting Chris Dennis : > >> Alternatively, given that GnuCash has so much Scheme code in it, would >> it be a better solution to create a chunk of Scheme that processes >> report templates written in some form of pseudo-HTML (for example)? >> Th

GnuCash reports via eguile - probably not

2009-01-20 Thread Chris Dennis
ote something similar many years ago (in Turbo Pascal, and creating LaTeX code), but I don't really want to reinvent that wheel. Does anyone know of a suitable Guile/Scheme module for doing this sort of thing? cheers Chris [1] http://woozle.org/~neale/src/eguile/ -- Chris De

Re: GnuCash reports via eguile - probably not

2009-01-21 Thread Chris Dennis
Josh Sled wrote: > Chris Dennis writes: >> Thinking it through, even if it were possible to pass parameters to the >> template code, we'd be opening a huge security risk. We'd be >> encouraging Joe User to create a template containing code that has full >&

Re: GnuCash reports via eguile - probably not

2009-01-21 Thread Chris Dennis
Derek Atkins wrote: > Chris Dennis writes: > >>> I'd encourage "you" to not add another layer of formatting or >>> translation. Just have the template iterate over objects, call >>> accessors and format data for rendering. >> Can you expl

Re: GnuCash reports via eguile - probably not

2009-01-21 Thread Chris Dennis
Thanks to Derek, Arthur, and Josh for their replies. I can try to make some progess now (when time permits...) cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel

Re: GnuCash reports via eguile - probably not

2009-01-26 Thread Chris Dennis
-- ERROR: Bad define placement -- I found a mention of this issue at http://www.opensubscriber.com/message/guile-u...@gnu.org/9617568.html but I'm not sure whether to give up on local-eval, or just make a rule that the template code can't include 'define', which wo

Eguile report templates -- another hurdle

2009-01-30 Thread Chris Dennis
ailable to Guile via Swig. It's available in the main part of report, but not in the template code that is evaluated using local-eval and (the-environment). Is there a reason why C routines such as gncInvoiceGetBook would be unavailable in an environment where the likes of gnc:make-ht

Re: Eguile report templates -- another hurdle

2009-02-01 Thread Chris Dennis
Chris Dennis wrote: > Hello folks > > My project bring HTML templates to GnuCash reports is making good progress. > > But I've stumbled on another problem which requires expert knowledge of > GnuCash and/org Swig and/or Guile. > > My evaluated report code can a

Re: Eguile report templates -- another hurdle - SOLVED!

2009-02-01 Thread Chris Dennis
Andrew Sackville-West wrote: > On Sun, Feb 01, 2009 at 12:23:14PM +0000, Chris Dennis wrote: >> Chris Dennis wrote: >>> Hello folks >>> >>> My project bring HTML templates to GnuCash reports is making good progress. >>> >>> But I've stu

Re: Thank you

2009-02-05 Thread Chris Dennis
to date with gnucash releases. > > Thanks again, > > James > ___ > gnucash-devel mailing list > gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hamp

Templated reports with eguile2

2009-02-05 Thread Chris Dennis
t.scm (that name is hard-coded and is also Linux-specific). The file is useful for debugging the template. Please give it a try and let me know what you think. cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK _

Problems with gncTaxTableGetEntries in Guile

2009-02-23 Thread Chris Dennis
Wrong type argument in position 1" I'm using updated SVN trunk (r17944) on Linux (Ubuntu Intrepid), with Guile 1.6. Has anyone else tried access tax tables from Guile? cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingb

Re: Problems with gncTaxTableGetEntries in Guile

2009-02-24 Thread Chris Dennis
Derek Atkins wrote: > Hi, > > Chris Dennis writes: > >> Hello folks >> >> I'm having trouble using gncTaxTableGetEntries in a report. >> >> I can get the tax table associated with an invoice entry using >> gncEntryGetInvTaxTable, giving a po

Re: Problems with gncTaxTableGetEntries in Guile

2009-02-24 Thread Chris Dennis
Derek Atkins wrote: > Chris Dennis writes: > >> I've grep'ed fairly thoroughly through the source, and I can't find >> anything obviously wrong. business-core.i includes gncTaxTable.h, which >> has the line >> >>GList *gncTaxTableGetEntrie

Re: Problems with gncTaxTableGetEntries in Guile

2009-02-25 Thread Chris Dennis
s it my email system that's failing, or the list's? cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://list

Re: Problems with gncTaxTableGetEntries in Guile

2009-02-25 Thread Chris Dennis
Derek Atkins wrote: Hi, Chris Dennis writes: By trial and error, I seem to have worked out how to fix this. I'll post a patch when I've tested it a bit more. Attached is a small patch which corrects the Swig wrapping for gncTaxTableGetEntries, and allows my eguile-based

mailing list delay

2009-02-25 Thread Chris Dennis
Christian Stimming wrote: > Zitat von Chris Dennis : >> BTW, my posts to gnucash-devel@gnucash.org don't seem to be getting >> through, only the CC's to Derek (I know because he replied). >> >> It was OK a few days ago. Is it my email system that's faili

Re: mailing list delay

2009-02-26 Thread Chris Dennis
Derek Atkins wrote: > Chris Dennis writes: > >> There seems to be a delay of several hours between me sending messages >> and them showing up on the list. >> >> Is this caused by moderation, or just slow servers? > > Neither. It's caused by your syst

Re: mailing list delay

2009-02-26 Thread Chris Dennis
Chris Dennis wrote: > > OK, thanks for that. I'm posting this via a different SMTP server to > see if that helps. Yes, that's much faster. Apologies for clogging up the list with this stuff. Thank you to Andreas and Derek for their comments about the TaxTable / Swig prob

Re: Problems with gncTaxTableGetEntries in Guile

2009-03-01 Thread Chris Dennis
ucash report for demonstrating the problem, and the patch for fixing it. cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingbridge, Hampshire, UK ___ gnucash-devel mailing list gnucash-devel@gnucash.org

Easier reports with eguile-gnc

2009-03-09 Thread Chris Dennis
f manual adjustment to file paths. cheers Chris [1] https://lists.gnucash.org/pipermail/gnucash-devel/2009-February/024775.html [2] http://bugzilla.gnome.org/show_bug.cgi?id=574582 [3] http://woozle.org/~neale/src/eguile/ -- Chris Dennis

Re: Easier reports with eguile-gnc

2009-03-23 Thread Chris Dennis
Andrew Sackville-West wrote: > On Mon, Mar 09, 2009 at 09:34:16AM +0000, Chris Dennis wrote: >> My previous posting on this topic[1] got no response, but I've now >> completed work on this project, and created an enhancement bug on >> Bugzilla[2]. > > I might g

Re: Webkit status (updated)

2009-03-30 Thread Chris Dennis
sheet) +(set! html (gnc:html-document-render doc headers? (gnc:report-set-ctext! report html) ;; cache the html (gnc:report-set-dirty?! report #f) ;; mark it clean html) cheers Chris -- Chris Dennis cgden...@btinternet.com Fordingb

Re: Webkit status (updated)

2009-03-30 Thread Chris Dennis
cument and back again. cheers Chris Phil ---- *From:* Chris Dennis *To:* Phil Longstaff *Cc:* Gnucash list *Sent:* Monday, March 30, 2009 3:00:16 AM *Subject:* Re: Webkit status (updated) Phil Longstaff wrote: > So, at this point, with libwebki

Re: Webkit status (updated)

2009-03-31 Thread Chris Dennis
Phil Longstaff wrote: On March 31, 2009 05:14:31 am Chris Dennis wrote: > Hello Phil > > Phil Longstaff wrote: > > Hi Chris, > > > > as an alternative to webkit, I was also looking at whether gecko would > > be a better engine. It looks about the same as

Re: Webkit status (updated)

2009-03-31 Thread Chris Dennis
header file to generate wrappers */ -%include "gnc-html-extras.h" +%include "../html/gnc-html-extras.h" GNCOptionWin * gnc_options_dialog_new(gchar *title); 8< ---- -- Chris Dennis cgden.

Re: Easier reports with eguile-gnc

2009-04-04 Thread Chris Dennis
Andrew Sackville-West wrote: On Mon, Mar 23, 2009 at 09:14:00AM +, Chris Dennis wrote: Andrew Sackville-West wrote: On Mon, Mar 09, 2009 at 09:34:16AM +, Chris Dennis wrote: My previous posting on this topic[1] got no response, but I've now completed work on this project, and cr