[reportlab-users] Pythonpoint problem

Dennis Allison reportlab-users@reportlab.com
Fri, 25 Jul 2003 15:40:51 -0700 (PDT)


OOOPs....  I just noticed that the rectangles are in a frame which is 
not allowed....

Strange that it works as a singleton but not otherwise.   

Maybe we need another kind of container class here.

On Fri, 25 Jul 2003, Dennis Allison wrote:

> 
> [---]$ ./pythonpoint -v foo.xml
> saving presentation...
> /home/allison/ASlides/foo.pdf
> doing slide 1, id = Slide-1
> Traceback (most recent call last):
>   File "./pythonpoint", line 1072, in ?
>     main()
>   File "./pythonpoint", line 1067, in main
>     process(file, notes, handout, printout, cols, verbose,
> options['outDir'])
>   File "./pythonpoint", line 943, in process
>     return _process(rawdata, datafilename, notes, handout, printout, cols,
> verbose, outDir)
>   File "./pythonpoint", line 963, in _process
>     pdfcontent = pres.save()
>   File
> "/usr/lib/python2.3/site-packages/reportlab/tools/pythonpoint/pythonpoint.py",
> line 449, in save
>     return self.saveAsPresentation()
>   File
> "/usr/lib/python2.3/site-packages/reportlab/tools/pythonpoint/pythonpoint.py",
> line 388, in saveAsPresentation
>     slide.drawOn(canv)
>   File
> "/usr/lib/python2.3/site-packages/reportlab/tools/pythonpoint/pythonpoint.py",
> line 557, in drawOn
>     graphic.drawOn(canv)
> AttributeError: 'NoneType' object has no attribute 'drawOn'
> 
> the source was
> 
> <presentation  filename="test.xml" >
> <stylesheet  module="standard" function="getParagraphStyles" />
> <title></title>
> <author>Dennis Allison</author>
> <subject></subject>
> <section name="slideshow"><rectangle  x="20" y="20" width="96"
> height="555" fill="ReportLabBlue" />
> <slide id="Slide-1" title="Code and Data">
> <frame x="120" y="72" width="700" height="468" leftmargin="36"
> rightmargin="36">
> <para style="Heading1">System Diagram</para>
> <rectangle x="299" y="106" height="300" width="150">
> <rectangle x="420" y="106" height="300" width="150">
> </frame>
> </slide>
> </section>
> </presentation>
> 
> Removing the second rectangle eliminates the problem.
> 
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>