[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9034 - trunk/gnue-common/src/printing/pdftable
From: |
jcater |
Subject: |
[gnue] r9034 - trunk/gnue-common/src/printing/pdftable |
Date: |
Mon, 13 Nov 2006 13:40:16 -0600 (CST) |
Author: jcater
Date: 2006-11-13 13:40:16 -0600 (Mon, 13 Nov 2006)
New Revision: 9034
Modified:
trunk/gnue-common/src/printing/pdftable/pdftable.py
Log:
changed a sys.exit() error (????) to an exception insteat; removed stray print
statement
Modified: trunk/gnue-common/src/printing/pdftable/pdftable.py
===================================================================
--- trunk/gnue-common/src/printing/pdftable/pdftable.py 2006-11-13 18:04:59 UTC
(rev 9033)
+++ trunk/gnue-common/src/printing/pdftable/pdftable.py 2006-11-13 19:40:16 UTC
(rev 9034)
@@ -278,8 +278,7 @@
"""
secType = self.definedSectionTypes[sectionType]
if endColumn > len(secType['columnSizes'])-1:
- print "endColumn longer than defined columns"
- sys.exit()
+ raise StandardError("endColumn longer than defined columns")
heading = {'text':heading,
'align':align,
@@ -741,7 +740,6 @@
width = canvas.stringWidth(text, font, size)
yoff = size*.75
gutter = 3.0
- print text, width, x2, x1, x2 - x1, x2 - x1 - gutter * 2.0
if x2 - x1 - gutter * 2.0 > width:
linesize = .5*self.scale
canvas.setLineWidth(linesize)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9034 - trunk/gnue-common/src/printing/pdftable,
jcater <=