[reportlab-users] Simple multibuild doesn't work
    Robin Becker 
    robin at reportlab.com
       
    Thu Jun  4 09:09:02 EDT 2009
    
    
  
Roberto Alsina wrote:
> What's wrong with this simple program? 
> 
> Here is the code, which is basically the example from the docs, simplified, 
> and changed from build to multiBuild:
> 
> http://pastebin.com/f5ecf1e1f
> 
> Tried it with reportlab 2.3 and r3492 from svn.
> 
> If I use build() it works, with multiBuild() it fails with this exception:
> 
>   File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", 
> line 874, in multiBuild
>     self.build(tempStory, filename, canvasmaker)
>   File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", 
> line 1029, in build
>     BaseDocTemplate.build(self,flowables, canvasmaker=canvasmaker)
>   File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", 
> line 793, in build
>     self.clean_hanging()
>   File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", 
> line 428, in clean_hanging
>     self.handle_flowable(self._hanging)
>   File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", 
> line 675, in handle_flowable
>     f.apply(self)
>   File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", 
> line 132, in apply
>     getattr(doc,arn)(*args)
>   File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", 
> line 1005, in handle_pageBegin
>     self._handle_pageBegin()
>   File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", 
> line 453, in handle_pageBegin
>     self.pageTemplate.onPage(self.canv,self)
> TypeError: 'NoneType' object is not callable
> 
> 
> 
I suspect that multibuild actually requires some Indexing flowables to work.
-- 
Robin Becker
    
    
More information about the reportlab-users
mailing list