<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space"
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Sorry, it was my fault, here are better
version:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><dtml-var "_.str('string' + \" + 'with' + \' +
'quotes').replace(\",'').replace<FONT class=Apple-style-span
face="Times New Roman">(\','')"></FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=tom@modscape.com href="mailto:tom@modscape.com">Tom Von Lahndorff</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org
href="mailto:zope@zope.org">Zope user list</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 04, 2007 5:28
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Zope] Stripping
Quotes</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman"><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><BR class=khtml-block-placeholder></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">doesn't work. the double quotes are not escaped and
zope sees them as the end of the expression.</FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman"><FONT face=Arial size=2></FONT><BR
class=khtml-block-placeholder></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> From: "Jaroslav Lukesh" <</FONT><FONT
class=Apple-style-span face="Times New Roman" color=#0000ff><SPAN
class=Apple-style-span style="TEXT-DECORATION: underline"><A
href="mailto:lukesh@seznam.cz">lukesh@seznam.cz</A></SPAN></FONT><FONT
class=Apple-style-span face="Times New Roman">></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> Date: August 29, 2007 6:16:12 PM EDT</FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> To: "Zope user list" <</FONT><FONT
class=Apple-style-span face="Times New Roman" color=#0000ff><SPAN
class=Apple-style-span style="TEXT-DECORATION: underline"><A
href="mailto:zope@zope.org">zope@zope.org</A></SPAN></FONT><FONT
class=Apple-style-span face="Times New Roman">>, "Tom Von Lahndorff"
</FONT><FONT class=Apple-style-span face="Times New Roman"> </FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> <</FONT><FONT class=Apple-style-span
face="Times New Roman" color=#0000ff><SPAN class=Apple-style-span
style="TEXT-DECORATION: underline"><A
href="mailto:tom@modscape.com">tom@modscape.com</A></SPAN></FONT><FONT
class=Apple-style-span face="Times New Roman">></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> Subject: Re: [Zope] Stripping Quotes</FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> <dtml-var
"_.str('string\"with\'quotes').replace('\"','').replace</FONT><FONT
class=Apple-style-span face="Times New Roman"> </FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> ('\'','')"></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> ----- Original Message ----- From: "Tom Von
Lahndorff" </FONT><FONT class=Apple-style-span
face="Times New Roman"> </FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">> <</FONT><FONT class=Apple-style-span
face="Times New Roman" color=#0000ff><SPAN class=Apple-style-span
style="TEXT-DECORATION: underline"><A
href="mailto:tom@modscape.com">tom@modscape.com</A></SPAN></FONT><FONT
class=Apple-style-span face="Times New Roman">></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">></FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">>> Whats the best way to strip (double and/or
single) quotes from a</FONT><FONT class=Apple-style-span
face="Times New Roman"> </FONT></DIV>
<DIV style="MARGIN: 0px"><FONT class=Apple-style-span
face="Times New Roman">>> string in python and/or dtml?
Thanks.</FONT></DIV>
<P><FONT face=Arial size=2></FONT></P></BLOCKQUOTE></BODY></HTML>