[reportlab-users] Processor for kugar definitions

Andy Robinson reportlab-users@reportlab.com
Mon, 19 Jan 2004 00:34:59 -0000


> Kugar is a report writer that consists of 2 parts. kudesigner,
> and kugar and
> is a standard part of KDE. Documentation on what it can do can be
> found on
> www.kde.org.

Unfortunately their site has no screenshots, and less info
than you have given me below...

Thanks for the layout file.  After I commented out the DTD declaration,
it now gets most of the way on my (Windows) machine then gives
a traceback; I tried to debug this but am confused:

- Andy

C:\code\reportlab\demos\kugar>GenXMLReport.py
* * * Bouwen RepHdrdefinities
* * * Bouwen RepPagdefinities
Detaillvl 0 is arraynr 0
Detaillvl 1 is arraynr 1
Detaillvl 2 is arraynr 2
* * * Bouwen DetailFooterdefinities
* * * Bouwen PageFooterdefinities
* * * Bouwen RepFooterdefinities
Detaillvl 0 is arraynr 0
ProcessRow
ProcessTable
-------------------------------------
SingleRow --------------------------------
--
Traceback (most recent call last):
  File "C:\code\reportlab\demos\kugar\GenXMLReport.py", line 841, in ?
    p.Row({"Naam1":"dddddd", "Naam2":"eeeeeeee","Postbus":"Postbus
900","Postcod
e":"1213 DS","Woonplaats":"Vlaardingen"},lvl=0)
  File "C:\code\reportlab\demos\kugar\GenXMLReport.py", line 264, in Row
    Rh, result = self.det.ProcessRow(data, lvl)
  File "C:\code\reportlab\demos\kugar\GenXMLReport.py", line 691, in
ProcessRow
    return self.__ProcessTableInput(data, lvlidx)
  File "C:\code\reportlab\demos\kugar\GenXMLReport.py", line 698, in
__ProcessTa
bleInput
    Rh, t = self.__SingleRow(data, lvlidx)
  File "C:\code\reportlab\demos\kugar\GenXMLReport.py", line 734, in
__SingleRow

    self.DetDefs[lvlidx][n].CalcResult[m] =
self.Calculations[self.DetDefs[lvlid
x][n].CalcType[m]](self.DetDefs[lvlidx][n].CalcResult[m], float(value))
TypeError: tuple indices must be integers