[Zope] Casting to a list
Ken Kinder
kkinder@messagemedia.com
Wed, 22 Mar 2000 13:10:18 -0700
That didn't seem to work. Am I doing this right?
<dtml-let assignment:list=assignment>
<dtml-in assignment:list>
<!--#call
"qryCAssign(user_id=_['sequence-item'],client_id=client_id)"-->
</dtml-in>
</dtml-let>
Hung Jung Lu wrote:
>
> 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
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
--
Ken Kinder
303.381.7631