[Zope] String to a List

Johan Carlsson johanc@torped.se
Mon, 18 Oct 1999 18:41:38 +0200


> Does anybody know how o convert a string into a list ?
> 
> I need this in order to supply data to in tag
> 

Python 
------

string.split(str [, sep [, maxsplit]])

str - string of words
sep - splits around sep occurrences (if null or absent splits on whitespace)
maxsplit - nonzero, only split maxsplit times, default=0


DTML
----
_.string.split(str [, sep [, maxsplit]])


//johan