Re: [Modeling-users] Patch for handling boolean values in xml model for python 2.3
Status: Abandoned
Brought to you by:
sbigaret
|
From: Sebastien B. <sbi...@us...> - 2003-12-05 10:04:13
|
Hi John,
Sorry for the late answer. I still did not find the time to look at
your patch, but I will, probably this week-end, and I'll then report
here. It will probably need some adjustment before it is integrated
into the main trunk since we still support py2.1 for now.
Thanks a lot for sharing,
-- S=E9bastien.
John Georgiadis <ig...@do...> wrote:
> Hi,
>=20
> This is a patch to handle the differences between python 2.2 & 2.3
> regarding converting boolean values. It uses the bool() built-in, so I
> think it won't work for versions of python < 2.2.1
>=20
> Boolean values such as isClassProperty & isAbstract are written as 0/1
> in 2.2 and True/False in 2.3. The model loads fine with either 2.2/2.3
> regardless of the version of python it was generated from.
>=20
> I'm not familiar with the code base, so let me know if this breaks
> something else.
>=20
> cheers
> john
|