[Zope-dev] Zope 2.3.1b1 bug? (:tokens)

Steve Alexander steve@cat-box.net
Tue, 20 Feb 2001 11:02:11 +0000


Erik Enge wrote:

> Hiya.
> 
> variable:tokens
> 
> is a bit fubar.  If I raise it on the next page it says stuff like 
> 
> 	['item', 'item1', 'item', 'item']
> 
> ie. it repeats some of the items in variable for no apparent
> reason (variable contains only 'item' and 'item1').  Also, if I do:
> 
>  <input type="hidden" name="variable2:tokens" value="
>    <dtml-in variable><dtml-var "_['sequence-item']"> </dtml-in>">
> 
> and raise variable2 on the "next page" it says:
> 
> 	['item', ['item1']]

> Is it just my installation?  Zope 2.3.1b1 on Linux 2.4.1 with python
> 1.5.2.  If need be I can do a thorougher report and possibly a patch, but
> not till later this week I'm afraid.

I just tried to reproduce this with 2.3 from CVS.
Here's the DTML Method I used:


<html>
<body>
  <form>
  <dtml-let t="REQUEST.get('t', ['nothing'])">
    <input name="t:tokens" value="<dtml-var "_.string.join(t, ' ')">">
  </dtml-let>
  </form>
</body>
</html>

It all works as I expect; no problems.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net