src/reportlab/platypus/doctemplate.py
branchpy33
changeset 3795 2a6c4b74219f
parent 3760 674899ebab37
child 3850 52c3600611ec
equal deleted inserted replaced
3794:398ea04239b5 3795:2a6c4b74219f
   640             self.frame._debug = self._debug
   640             self.frame._debug = self._debug
   641             self.handle_frameBegin()
   641             self.handle_frameBegin()
   642 
   642 
   643     def handle_nextPageTemplate(self,pt):
   643     def handle_nextPageTemplate(self,pt):
   644         '''On endPage change to the page template with name or index pt'''
   644         '''On endPage change to the page template with name or index pt'''
   645         if isinstance(pt,''):
   645         if isinstance(pt,str):
   646             if hasattr(self, '_nextPageTemplateCycle'): del self._nextPageTemplateCycle
   646             if hasattr(self, '_nextPageTemplateCycle'): del self._nextPageTemplateCycle
   647             for t in self.pageTemplates:
   647             for t in self.pageTemplates:
   648                 if t.id == pt:
   648                 if t.id == pt:
   649                     self._nextPageTemplateIndex = self.pageTemplates.index(t)
   649                     self._nextPageTemplateIndex = self.pageTemplates.index(t)
   650                     return
   650                     return