> Beside of this, is there a way to test if foo is a string or a
> sequence or whatever ??
apart from changing your form to force the list type, you could try
(untested code):
...
There is no easy way to check whether a value in Zope is a list,
tuple, or integer, but there is an easy way to
Felipe Alvarez Harnecker wrote:
>
> 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:
>
>
> ...
> ...
>
>
> That is, calling the
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:
...
...
That is, calling the list function of Python on checkbox.
But that doesn't wo