<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Fernando Lujan wrote:
<blockquote cite="mid63183739050524143228eace88@mail.gmail.com"
type="cite"><br>
<blockquote type="cite">
<pre wrap="">I think you are close. Change <dtml-if ids_test in ids_test> to
<dtml-if "ids_test in ids_test"> ?
</pre>
</blockquote>
<pre wrap=""><!---->
It's working like IN over a string, e.g. the [5,61] will make selected
the number 5,6 and 61.
<dtml-call "REQUEST.set('ids_test', '(' + id_test[1:-1] + ')')">
Where id_test is the result of the database query wich return in this
format: {1,2,3}. I modify it to a (1,2,3) and finally I try the
        <dtml-call "REQUEST.set('list', _.list(ids_test))">
Following this api:
list (sequence)
Return a list whose items are the same and in the same order as
sequence's items. If sequence is already a list, a copy is made and
returned, similar to sequence[:]. For instance, list('abc') returns
returns ['a', 'b', 'c'] and list( (1, 2, 3) ) returns [1, 2, 3].
I need a integer-list, is it possible?
</pre>
</blockquote>
Fernando,<br>
I'm rusty with DTML But I know you can get a list returned using
_.string.split(idstest,',') <br>
<br>
But Id call a python script with idstest as a param, eg<br>
<dtml-call "REQUEST.set('myList',pyMakeList( idstest ))"><br>
Eg,<br>
<br>
python<br>
import string<br>
idstest = '{1,2,3}' # test only is param<br>
<br>
s = s[1:-1]<br>
list = string.split(s,',')<br>
return list<br>
<br>
Good luck!<br>
David<br>
<br>
<br>
</body>
</html>