adding your own report scripts (was: Re: Plugbaarheid?)
Joost van Baal
joostvb at logreport.org
Sun May 6 12:52:38 CEST 2001
On Sat, Apr 28, 2001 at 09:51:31AM +0200, Egon Willighagen wrote:
>
> Een ander issue dat ik ff wil aanstippen is:
>
> - hoe plugbaar is Lire?
>
> Eigenlijk heel plugbaar, daarom heb ik het ook alszodanig te boek gezet bij
> SF. Maar hierover heb ik enkele vragen:
>
> 1. waar kunnen gebruikers eigen rapporten neerzetten (welke dir)?
> Moet dat system-wide? of kan dat ook per gebruiker?
> Hoe zal Lire ze herkennen als goede report scripts? En voor welke
> service/superservice ze geschikt zijn (API, filename, dir?)
> 2. hoe kan de gebruiker aangeven welke rapporten hij wil gebruiken?
> Doet lr_config dit al?
[ How can users add their own report scripts ]
The lr_dlf2xml manpage briefly documents this. If one writes a file
<sysconfdir>/www/defaults.local, which features
REPORTSCRIPTS_FILE=$ETCDIR/reportscripts.local
while
<sysconfdir>/www/reportscripts.local
reads
report_clienthost
report_requestedpage
report_pagesperclienthost
report_httpresult
report_httpresultperclient
report_bytesperresult
report_bytesperday
report_requestsperday
report_myreport
then
a script <libexecdir>/www/report_myreport will be executed for each
www report (next to the allready existent scripts)
> 3. (zie emailtje over <description>) Hoe kan de gebruiker aangeven of
> hij de beschrijving voor het rapport wil opnemen?
> Dit komt natuurlijk in reportXXXX.conf. Voorstel: optie DESCRIPTION=1|0
See email/script/report_error . If the generated xml subreport has a
<description>...</description> blurb, the description gets displayed
in the subreport. This is the current implementation.
>
> Wellicht een ~/.lire/ directory?
>
> ~/.lire/plugins/report/
> ~/.lire/plugins/service/
Everything which can be implemented in a <sysconfdir>/defaults.local,
can also be implemented in ~/.lirerc. However, for the superservice
specific <sysconfdir>/<superservice>/defaults, such a hook not yet
exists. One can only change superservice specific settings systemwide.
(I doubt if one would likely want to change this on a per-user basis,
however.)
>
> En system-wide:
>
> ${prefix}/lib/lire/plugins/report
> ${prefix}/lib/lire/plugins/service
Hm... I believe the current hooks do their job ok. Documentation on
this is somewhat meagre. I'll add the contents of this message to the
manual.
Bye,
Joost
--
Joost van Baal . . http://www.logreport.org/
. .
/^LogReport$/ . . joostvb at logreport.org
--
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
development-request at logreport.org
More information about the Development
mailing list