[Zope] Best Zope way to split a textfield on 2000 char increments

Steve Drees drees@the-bridge.net
Fri, 15 Dec 2000 08:52:38 -0600


> I just realized I need to split a potentially pretty long textfield 
> input from a web form into 2000 character chunks, for input into a 
> database. I see a lot of string functions in DTML, but none that 
> looks like it will do this..


string slices.

somestring[:1999] is the first 2000 characters of somestring.