reportlab/platypus/tables.py
changeset 2389 174fe506bf48
parent 2384 6d44252e1042
child 2392 6c59b0eb312d
--- a/reportlab/platypus/tables.py	Wed Sep 22 08:57:45 2004 +0000
+++ b/reportlab/platypus/tables.py	Thu Sep 23 12:36:41 2004 +0000
@@ -211,9 +211,9 @@
             self.setStyle(style)
     def __repr__(self):
         "incomplete, but better than nothing"
-        r = self._rowHeights
-        c = self._colWidths
-        cv = self._cellvalues
+        r = getattr(self,'_rowHeights','[unknown]')
+        c = getattr(self,'_colWidths','[unknown]')
+        cv = getattr(self,'_cellvalues','[unknown]')
         import pprint, string
         cv = pprint.pformat(cv)
         cv = string.replace(cv, "\n", "\n  ")