[Zope] PythonScript -> List item is out of range

olpa@sybcom.de olpa@sybcom.de
Fri, 8 Jun 2001 14:30:01 +0200 (CEST)


Hi:

I wrote this PythonScript:

s1 = { 'a': 1, 'b': 0 }
s2 = { 'a': s1['a'] and s1['b'] }
return s2

and Zope does not accept this. Zope returns directly
a list item is out of range...

When I replace the 'and' by '+', then everything is ok!

How to do ?



---
   "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