FW: [Zope] another DTML ques
Dieter Maurer
dieter@handshake.de
Tue, 18 Jun 2002 21:32:36 +0200
Chris Beaven writes:
> Here's his code
>
> -----Original Message-----
> From: Aseem Mohanty [mailto:aseem@neurobehavioralsystems.com]
> Sent: Tuesday, 18 June 2002 2:36 a.m.
> To: Chris Beaven
> Subject: Re: [Zope] another DTML ques
>
>
> I return the list via a python function:
>
> import string
> s = str(s_arg)
>
> s = s.replace('[','')
> s = s.replace(']','')
> s = s.replace('\'','')
> s = s.replace('"','')
> ret = s.split(',')
> return ret
>
> s_arg needs to look like "['test','test_str','yes']"
I expect blanks to cause the failing "'test_str' in ret".
Try: "ret= map(string.strip,ret)"
Dieter