[Zope] - Problem with iteration
FR Chalaoux
chalaouxf@synbio.tpgnet.net
Wed, 27 Jan 1999 11:53:17 +0100
<bold><color><param>0100,0100,0100</param>I'm trying to iterate over a tok=
en ('test2 'proprity defined in
my folder) where 'test2' =3D [1,2,3], sequence-items are
integers. I would like print the sequence-item if it is egal to 1.
But ... :(, FR
DTML file
=3D=3D=3D=3D=3D=3D=3D
<<!--#var standard_html_header-->
<<!--#in test2-->
<<!--#if "sequence-item =3D=3D 1"-->
<<!--#var sequence-item-->
<<!--#/if-->
<<!--#/in-->
<<!--#var standard_html_footer-->
Error
=3D=3D=3D=3D
<<HTML><<HEAD><<TITLE>Zope<</TITLE><</HEAD><<BODY
BGCOLOR=3D"#FFFFFF">
<<TABLE BORDER=3D"0" WIDTH=3D"100%">
<<TR>
<<TD WIDTH=3D"10%" ALIGN=3D"CENTER">
<<STRONG><<FONT SIZE=3D"+6"
COLOR=3D"#77003B">!<</FONT><</STRONG>
<</TD>
<<TD WIDTH=3D"90%"><<BR>
<<FONT SIZE=3D"+2">System Unavailable<</FONT>
<<P>This site is currently experiencing technical difficulties.
Please contact the site administrator for more information.
For
additional technical information, please refer to the HTML
source for this
page. Thank you for your patience.<</P>
<</TD>
<</TR>
<</TABLE>
<<!--
Error type:
Error value: sequence
-->
<</BODY><</HTML>
<<!--
Traceback (innermost last):
File /opt/digicool/zope/Zope-1.9.0-
src/lib/python/ZPublisher/Publish.py, line 879, in
publish_module
File /opt/digicool/zope/Zope-1.9.0-
src/lib/python/ZPublisher/Publish.py, line 595, in publish
(Info: /test_tokens)
File /opt/digicool/zope/Zope-1.9.0-
src/lib/python/OFS/Document.py, line 181, in __call__
(Object: test_tokens)
File /opt/digicool/zope/Zope-1.9.0-
src/lib/python/OFS/Document.py, line 177, in __call__
(Object: test_tokens)
File /opt/digicool/zope/Zope-1.9.0-
src/lib/python/DocumentTemplate/DT_String.py, line 514, in
__call__
(Object: test_tokens)
File /usr/local/lib/site-
python/Bobo/DocumentTemplate/DT_In.py, line 634, in
renderwob
(Object: test2)
File /usr/local/lib/site-
python/Bobo/DocumentTemplate/pDocumentTemplate.py,
line 222, in render_blocks
File /usr/local/lib/site-
python/Bobo/DocumentTemplate/DT_Util.py, line 223, in eval
(Object: sequence-item =3D=3D 1)
File <<string>, line 0, in ?
NameError: (see above)
-->
Fran=E7ois-R=E9gis Chalaoux
Bioinformatics Group
Synth=E9labo Biomol=E9culaire
67080 Strasbourg Cedex
FRANCE
T=E9l : 03 88 60 87 14
Fax : 03 88 45 90 70