[Zope] String manipulation

2000-09-26 Thread jensebaer
Hi all, how can I manage it to cut a string. for example: a string property(testtext) with 500 words. but only want to give out 20 characters of tis text. Thank you Jens

Re: [Zope] String manipulation

2000-09-26 Thread Phil Harris
] Sent: Tuesday, September 26, 2000 8:28 PM Subject: [Zope] String manipulation Hi all, how can I manage it to cut a string. for example: a string property (testtext) with 500 words. but only want to give out 20 characters of tis text. Thank you Jens __

[Zope] String manipulation

2000-09-26 Thread Spicklemire, Jerry
"how can I manage it to cut a string. for example: a string property (testtext) with 500 words. but only want to give out 20 characters of tis text." Python sequence slicing syntax can be done with DTML, like so: dtml-call "REQUEST.set('first_20_char', '_['some_long"string'][:20])" dtml-var