[Zope] URL and list

Andreas Jung Andreas Jung" <andreas@andreas-jung.com
Tue, 19 Jun 2001 12:13:51 -0400


You could also use _.str() to get the string representation of the list.
But the representation might contains spaces so we need something like that:

<dtml-call RESPONSE.redirect(new_url + "_.string.replace(_.str(l),' ','')")
>

Hope this works,

Andreas
----- Original Message -----
From: "Petr Knapek" <petr.knapek@nextra.cz>
To: "Andreas Jung" <andreas@andreas-jung.com>
Cc: "Petr Knapek" <petr.knapek@nextra.cz>; "zope-list" <zope@zope.org>
Sent: Tuesday, June 19, 2001 11:54 AM
Subject: Re: [Zope] URL and list


> >>>>> On Tue, 19 Jun 2001 10:59:55 -0400, "Andreas Jung"
<andreas@andreas-jung.com> said:
>
>     AJ> What about <dtml-let l="['foo', 'bla']"> <dtml-call
>     AJ> "RESPONSE.redirect(new_url+_.string.join(l,','))"> </dtml-let>
>
> No, this does't work.  I can see it in REQUEST as:
>
> l       'foo,bla'
>
> and I need it as ['foo', 'bla']
>
>