src/reportlab/platypus/doctemplate.py
changeset 3161 5717a3003dc3
parent 3131 0f15fabe9d8d
child 3175 bf81f5b13ba8
equal deleted inserted replaced
3160:3c34cc4aece0 3161:5717a3003dc3
   563                 for t in self.pageTemplates:
   563                 for t in self.pageTemplates:
   564                     if t.id == ptn:
   564                     if t.id == ptn:
   565                         c.append(t)
   565                         c.append(t)
   566                         found = 1
   566                         found = 1
   567                 if not found:
   567                 if not found:
   568                     raise ValueError("Cannot find page template called %s" % templateName)
   568                     raise ValueError("Cannot find page template called %s" % ptn)
   569             if not c:
   569             if not c:
   570                 raise ValueError("No valid page templates in cycle")
   570                 raise ValueError("No valid page templates in cycle")
   571             elif c._restart>len(c):
   571             elif c._restart>len(c):
   572                 raise ValueError("Invalid cycle restart position")
   572                 raise ValueError("Invalid cycle restart position")
   573 
   573