On Today, Evan Simpson wrote:
From: <olpa@sybcom.de>
s1 = { 'a': 1, 'b': 0 } s2 = { 'a': s1['a'] and s1['b'] } return s2
Some versions of the PythonScripts Product don't properly handle a mixture of subobject access and boolean operators. You can rewrite this as:
s1 = { 'a': 1, 'b': 0 } s1a = s1['a'] s1b = s1['b'] s2 = { 'a': s1a and s1b } return s2
that's a good workaround, and worked for me.
I think this is fixed in Zope 2.3.2.
Cheers,
Evan @ digicool
I was using 2.3.2. Thanks for your help. I still think there is a bug in the apple... --- "I suppose if we couldn't laugh at things that don't make sense, we couldn't react to a lot of life." -Hobbes --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de