[reportlab-users] Simple multibuild doesn't work

Roberto Alsina ralsina at netmanagers.com.ar
Thu Jun 4 08:54:22 EDT 2009


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



--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)
"Our opponent is an alien starship packed with atomic bombs, I said.
We have a protractor. Okay, I’ll go home and see if I can scrounge up a
ruler and a piece of string." — Neal Stephenson


More information about the reportlab-users mailing list