[reportlab-users] missing import Class in platypus/tables.py
Robin Becker
robin at reportlab.com
Tue Nov 15 05:18:19 EST 2011
Thanks, for the info and fix
On 14/11/2011 15:43, Félix Labrecque wrote:
> I am using Table class parameter "emptyTableAction" in one of my application and
> I found our that the class "Spacer" is not imported in the header of the file.
> The problem is still present in the daily build.
>
> line 245 of version 2.5 tables.py:
>
> elif emptyTableAction=='ignore':
> self.__class__ = Spacer
> Spacer.__init__(self,0,0)
>
> To fix this problem, line 20 should be changed from :
>
> from reportlab.platypus.flowables import Flowable, Preformatted
>
> to
>
> from reportlab.platypus.flowables import Flowable, Preformatted, _Spacer_
>
>
> Sorry that I cannot provide you with a simple test script but I think the
> problem and fix is quite obvious.
> --
.......n
--
Robin Becker
More information about the reportlab-users
mailing list