[Zope] Index of a split string in DTML

Jim Sanford jsanford@atinucleus.com
Tue, 30 Nov 1999 13:55:26 -0600


should probably be

<dtml-var expr="_.str(_.string.split(_['sequence-item'],':')[1])">

and the _.str() wrapper is probably unnecessary

(untested)

Jim

----- Original Message ----- 
From: Jason Spisak <webmaster@mtear.com>
To: <zope@zope.org>
Sent: Tuesday, November 30, 1999 11:28 AM
Subject: [Zope] Index of a split string in DTML


> Zopemisters,
> 
> I am trying to use split string and sequence-item.
> 
> <dtml-var expr="_.str(_str.split(_['sequence-item'],':')[1])">">
> 
> Gives me an 'illegal name used in expression' error.
> 
> Anyone?
>  
> -- 
> Jason Spisak
> webmaster@hiretechs.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 )
> 
>