[Zope] Casting to a list

Hung Jung Lu hungjunglu@hotmail.com
Wed, 22 Mar 2000 11:03:35 PST


ken kinder <kkinde-@messagemedia.com> wrote:
>How can I either cast a string to a list w/o messing up an existing
>list, or gain access to Python functions such as type() from a
>dtml-if statement?

The simple answer is: you don't need to cast. :)

Zope provides a solution: your specify in your multiple-select
a name like varname:list, and Zope will automatically cast it
into a list. That is, append the ':list' to your variable names.

Hung Jung

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com