reportlab/platypus/tables.py
changeset 2730 b3fc23a74fd1
parent 2590 deaa612ecb4c
child 2754 c24a6a23f5f9
--- a/reportlab/platypus/tables.py	Wed Jan 17 18:05:51 2007 +0000
+++ b/reportlab/platypus/tables.py	Wed Jan 17 18:25:03 2007 +0000
@@ -71,7 +71,7 @@
         if result is None:
             result = CellStyle1()
         for name in dir(self):
-            setattr(result, name, gettattr(self, name))
+            setattr(result, name, getattr(self, name))
         return result
 CellStyle = CellStyle1
 
@@ -898,7 +898,10 @@
         self._curcolor = None
 
     def _drawUnknown(self,  (sc, sr), (ec, er), weight, color, count, space):
-        raise ValueError, "Unknown line command '%s'" % op
+        #we are only called from _drawLines which is one level up
+        import sys
+        op = sys._getframe(1).f_locals['op']
+        raise ValueError("Unknown line command '%s'" % op)
 
     def _drawGrid(self, (sc, sr), (ec, er), weight, color, count, space):
         self._drawBox( (sc, sr), (ec, er), weight, color, count, space)