[reportlab-users] Chart axes bugs

Robin Becker reportlab-users@reportlab.com
Mon, 10 Nov 2003 16:49:36 +0000


In article <PGECLPOBGNBNKHNAGIJHAEDAGFAA.andy@reportlab.com>, Andy
Robinson <andy@reportlab.com> writes
>> 
>>    >>> from reportlab.lib.validators import isBoolean
>>    >>> isBoolean(False)
>>    1
>>    >>> isBoolean(True)
>>    1
>> 
>OK, this is a fair point and sorry not to grasp it.
>It seems someone has checked in the version-conditional
>fix this morning anyway - probably Robin? - so it should
>work now.
>
>- Andy

I did it yesterday. Funnily I don't get the above I see the following

PythonWin 2.3.2 (#49, Oct  2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)]
on win32.Portions Copyright 1994-2001 Mark Hammond
(mhammond@skippinet.com.au) - see 'Help/About PythonWin' for further
copyright information.
>>> from reportlab.lib.validators import isBoolean
>>> isBoolean(1)
True
>>> isBoolean(True)
True
>>> isBoolean(False)
True
>>> isBoolean('YES')
1
>>> isBoolean('no')
1
>>> 

That's because I reused the original normalize.

I think I need to fix so all the return values are boolean at least from
isBoolean.
-- 
Robin Becker