- Problem with iteration
<bold><color><param>0100,0100,0100</param>I'm trying to iterate over a token ('test2 'proprity defined in my folder) where 'test2' = [1,2,3], sequence-items are integers. I would like print the sequence-item if it is egal to 1. But ... :(, FR DTML file ======= <<!--#var standard_html_header--> <<!--#in test2--> <<!--#if "sequence-item == 1"--> <<!--#var sequence-item--> <<!--#/if--> <<!--#/in--> <<!--#var standard_html_footer--> Error ==== <<HTML><<HEAD><<TITLE>Zope<</TITLE><</HEAD><<BODY BGCOLOR="#FFFFFF"> <<TABLE BORDER="0" WIDTH="100%"> <<TR> <<TD WIDTH="10%" ALIGN="CENTER"> <<STRONG><<FONT SIZE="+6" COLOR="#77003B">!<</FONT><</STRONG> <</TD> <<TD WIDTH="90%"><<BR> <<FONT SIZE="+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 == 1) File <<string>, line 0, in ? NameError: (see above) --> François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70
participants (1)
-
chalaouxf@synbio.tpgnet.net