reportlab/platypus/doctemplate.py
changeset 2500 ea0e8cec358c
parent 2492 8142a1737889
child 2525 634ec1f48514
--- a/reportlab/platypus/doctemplate.py	Wed Jun 08 10:12:46 2005 +0000
+++ b/reportlab/platypus/doctemplate.py	Thu Jun 09 22:07:02 2005 +0000
@@ -36,6 +36,8 @@
 
 from types import *
 import sys
+import logging
+logger = logging.getLogger("reportlab.platypus")
 
 class LayoutError(Exception):
     pass
@@ -377,6 +379,7 @@
         '''Perform actions required at beginning of page.
         shouldn't normally be called directly'''
         self.page = self.page + 1
+        logger.debug("beginning page %d" % self.page)
         self.pageTemplate.beforeDrawPage(self.canv,self)
         self.pageTemplate.checkPageSize(self.canv,self)
         self.pageTemplate.onPage(self.canv,self)
@@ -412,6 +415,7 @@
             self.pageTemplate.afterDrawPage(self.canv, self)
             self.pageTemplate.onPageEnd(self.canv, self)
             self.afterPage()
+            logger.debug("ending page %d" % self.page)
             self.canv.setPageRotation(getattr(self.pageTemplate,'rotation',self.rotation))
             self.canv.showPage()