[Zope] Multiple selection and looping

Benoit DOMINIAK benoit.dominiak@makinacorpus.com
Fri, 13 Jul 2001 12:06:42 +0200


Hi everybody,
I made a Zclass with a multiple selection property "connection" and I want 
to create checkboxes wich must be checked if the value of the checkbox is 
one of the value of "connection".

Here is my code (with a little help from my friend Laurie ;-) :

<dtml-in "article_connection">
      <input type=checkbox name=connection value="<dtml-var sequence-item>"
		<dtml-call expr="REQUEST.set('mylistitem',_['sequence-item'])">
		<dtml-in connection>
			<dtml-if expr="_['sequence-item'] == mylistitem">
				checked
			</dtml-if>>
		</dtml-in>
      <dtml-var sequence-item><br>
</dtml-in>

It sounded good BUT :
Error Type: InError
Error Value: Strings are not allowed as input to the in tag.

Can somebody help me ??

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.