[reportlab-users] Problem with table class exceptions
Robin Becker
reportlab-users@reportlab.com
Wed, 9 Jul 2003 09:17:24 +0100
In article <0E39B60023525D4D821D4801EE2E286C593781@ZEUS.Intra.net>, Mark
Rees <Mark@CenturySoftware.com.au> writes
>In the platypus.Table class __init__ method various sanity checks are made and
>exceptions raised. The error strings for these exceptions use the identify
>method to provide feedback to what is causing the exception. The problem is the
>identify method uses the attribute self._cellvalues and in some cases that
>attribute has not been intialised when the exception is raised. Moving the line:
>
>self._cellvalues = data
>
>to the start of the __init__ method fixes the problem.
>
>Regards,
>Mark Rees
..... unfortunately that fails if data has the wrong type or is of the
wrong shape. I'm attempting to make the identity thing a bit more
robust.
--
Robin Becker