[reportlab-users] Missing Unicode support in validators
Dinu Gherman
reportlab-users@reportlab.com
Tue, 23 Sep 2003 16:01:25 +0200
Hi,
I've found that _isString() in lib/validators.py isn't yet aware of
Unicode... But if I replace the relevant bits with the following,
I can happily produce Tibetian texts in RL-Drawings again... ;-)
Regards,
Dinu
...
from types import FloatType, IntType, ListType, TupleType, \
StringType, UnicodeType
...
class _isString(Validator):
def test(self,x):
return type(x) in (StringType, UnicodeType)
...
--
Dinu C. Gherman
......................................................................
"Political satire became obsolete when Henry Kissinger was awarded
the Nobel Peace Prize." (Tom Lehrer)