[Zope] calling an Python builtin function

Felipe Alvarez Harnecker felipe.alvarez@qlsoft.cl
Tue, 23 May 2000 19:03:29 -0400 (CLT)


Hi Zopistas,

it's a pain looking to variables defined in a form such as checkboxes
that can be a string if one is selected or a sequence if many are.

to solve this problem i'd like to do something like:

<dtml-let checkbox="list(checkbox)">
...
...
</dtml-let>

That is, calling the list function of Python on checkbox.


But that doesn't work, neither <dtml-let checkbox="_.list(checkbox)">

Beside of this, is there a way to test if foo is a string or a
sequence or whatever ??

Thanks.

-- 
______________________________________________________

Felipe Alvarez Harnecker.  QlSoftware.
		
Tel. 09.874.60.17  e-mail: felipe.alvarez@qlsoft.cl

Potenciado por Ql/Linux  http://www.qlsoft.cl
______________________________________________________