Re: [Zope] calling an Python builtin function

2000-05-25 Thread Duncan Booth
> 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

Re: [Zope] calling an Python builtin function

2000-05-23 Thread Steve Alexander
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

[Zope] calling an Python builtin function

2000-05-23 Thread Felipe Alvarez Harnecker
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