src/reportlab/platypus/doctemplate.py
changeset 3374 348f9bcb4c11
parent 3368 afa025c34493
child 3384 4c9c0dcf0995
equal deleted inserted replaced
3373:127aed2a021d 3374:348f9bcb4c11
   925     def multiBuild(self, story,
   925     def multiBuild(self, story,
   926                    maxPasses = 10,
   926                    maxPasses = 10,
   927                    **buildKwds
   927                    **buildKwds
   928                    ):
   928                    ):
   929         """Makes multiple passes until all indexing flowables
   929         """Makes multiple passes until all indexing flowables
   930         are happy."""
   930         are happy.
       
   931         
       
   932         Returns number of passes"""
   931         self._indexingFlowables = []
   933         self._indexingFlowables = []
   932         #scan the story and keep a copy
   934         #scan the story and keep a copy
   933         for thing in story:
   935         for thing in story:
   934             if thing.isIndexing():
   936             if thing.isIndexing():
   935                 self._indexingFlowables.append(thing)
   937                 self._indexingFlowables.append(thing)
   970                 e = mbe.pop(0)
   972                 e = mbe.pop(0)
   971                 e[0](*e[1:])
   973                 e[0](*e[1:])
   972 
   974 
   973         del self._multiBuildEdits
   975         del self._multiBuildEdits
   974         if verbose: print 'saved'
   976         if verbose: print 'saved'
   975 
   977         return passes
       
   978         
   976     #these are pure virtuals override in derived classes
   979     #these are pure virtuals override in derived classes
   977     #NB these get called at suitable places by the base class
   980     #NB these get called at suitable places by the base class
   978     #so if you derive and override the handle_xxx methods
   981     #so if you derive and override the handle_xxx methods
   979     #it's up to you to ensure that they maintain the needed consistency
   982     #it's up to you to ensure that they maintain the needed consistency
   980     def afterInit(self):
   983     def afterInit(self):