Re: [taskjuggler] vacation-report

From: Chris Schlaeger (cs_at_suse.de)
Date: Tue Aug 05 2003 - 15:10:27 CEST


From: Chris Schlaeger <cs@suse.de>
Date: Tue, 5 Aug 2003 15:10:27 +0200
Message-Id: <200308051510.33243.cs@suse.de>
Subject: Re: [taskjuggler] vacation-report

On Tuesday 05 August 2003 13:56, Ernst Pfann wrote:
> Hi,
>
> i have tested TJ 1.9.0 and would say, that the new reports are great - good
> work :-)
>
> But i have one problem:
> We create a vacation-report with tj. The only way we found to to this, is a
> htmlresourcereport with changed stylesheets. We colored out .task (to
> .default) and colored in .vacation. This seems to be impossible with the
> new set of stylesheets, because there is no more differentiation between
> tasks and vacation.
>
> Is there another way to create something like a vacation-report?
> (I can't find another way to use vacation-data in reports)

There isn't, unfortunately. The new report generator needs to compute the
color since it is different for every scenario. So we can't use stylesheet
attributes for task colors anymore.

For post 2.0 we have planned to have user-defined task and resource coloring.
This would solve your problem. Until then, you can use this workaround:

Use sed to change the color in html files after generation:

sed 's/background-color:#87ff75/background-color:#f3ebae/g' file.html >
file-new.html

It's a bit of a hack, but probably does the trick for you.

Chris

-- 
KDE 3.1: Conquer your Enterprise Desktop!  See http://www.kde.org!
GPG Key: 1024D/0500838B  A5FE C051 2AFC 9A14 768A  5125 5829 5750 0500 838B




This archive was generated by hypermail 2.1.7 : Tue Aug 05 2003 - 15:10:36 CEST