[Zope] Tokens

cesare@planningsrl.it cesare@planningsrl.it
Tue, 18 Jan 2000 17:50:51 GMT


I have an SQLMethod (SQLRicercaAnnuncio) that accept a parameter 
"Parola:tokens"

The sql statement is:

select *
from annunci
<dtml-sqlgroup where>
<dtml-in Parola>
<dtml-unless sequence-start> or </dtml-unless>
    testo like '%<dtml-var sequence-item>%'
</dtml-in>
</dtml-sqlgroup>

When I test it from inside zope environment it does work properly.

I declared an dtml method with an input field named "EditParola". On the 
submit of this form is called another dtml-method that is this:

<dtml-var standard_html_header>
 
 <TABLE CELLSPACING="2">
<dtml-in "SQLRicercaAnnuncio(Parola='<dtml-var EditParola>')">
    <TR> <TH ALIGN="LEFT" VALIGN="TOP">Id </TH>
<td align="center" valign="top"> 
   <dtml-var testo>   [This is the field I want to show in table]
    </TD></TR>

</dtml-in>
    </TABLE>
</FORM>
<dtml-var standard_html_footer>


But I have the following error:


           Zope Error

           Zope has encountered an error while publishing this resource. 

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


I don't know:
1) which is the in tag that generates the error? It seem the in tag on the 
parameter but inside the zope env. it work
2) What am I making wrong?


Thank you in advanced,

Cesare
Cesare Raoss
Planning srl
Via Bolzano 45
38014 Gardolo (TN)
cesare@planningsrl.it
http://www.planningsrl.it