[reportlab-users] Empty lists in table datas
Robin Becker
robin at reportlab.com
Wed Mar 16 04:23:38 EST 2005
Jean-François Gosset wrote:
> Hi,
>
> Class reportlab.platypus.tables.Table accepts in parameter "data":
>
> o a string
> o a unique flowable
> o list of flowables
>
> In this last case, if the list is empty, there is an error during the build.
> I know, it seem's stupid to give an empty list. But it could be the case if we generate this list from variable length data collections.
> A simple workaround: data = ...., mylist or "", ...
>
> But the definitive correction seems trivial: 2 lines to change in order to test if the list is empty or no ...
>
..... OK that seeems like a reasonable patch
--
Robin Becker
More information about the reportlab-users
mailing list