doctemplate.py: fix up self test
authorrgbecker
Fri, 30 Jun 2006 09:15:09 +0000
changeset 2654 202c2b5e100e
parent 2653 babf3343985f
child 2655 c7333c9b3ed3
doctemplate.py: fix up self test
reportlab/platypus/doctemplate.py
--- a/reportlab/platypus/doctemplate.py	Thu Jun 22 09:16:20 2006 +0000
+++ b/reportlab/platypus/doctemplate.py	Fri Jun 30 09:15:09 2006 +0000
@@ -909,6 +909,8 @@
 if __name__ == '__main__':
 
     def myFirstPage(canvas, doc):
+        from reportlab.lib.colors import red
+        PAGE_HEIGHT = canvas._pagesize[1]
         canvas.saveState()
         canvas.setStrokeColor(red)
         canvas.setLineWidth(5)
@@ -920,6 +922,8 @@
         canvas.restoreState()
 
     def myLaterPages(canvas, doc):
+        from reportlab.lib.colors import red
+        PAGE_HEIGHT = canvas._pagesize[1]
         canvas.saveState()
         canvas.setStrokeColor(red)
         canvas.setLineWidth(5)