Re: [Zope] Stripping Quotes
Sorry, it was my fault, here are better version: - Original Message - From: Tom Von Lahndorff To: Zope user list Sent: Tuesday, September 04, 2007 5:28 PM Subject: Re: [Zope] Stripping Quotes doesn't work. the double quotes are not escaped and zope sees them as the end of the expression. > From: "Jaroslav Lukesh" <[EMAIL PROTECTED]> > Date: August 29, 2007 6:16:12 PM EDT > To: "Zope user list" , "Tom Von Lahndorff" > <[EMAIL PROTECTED]> > Subject: Re: [Zope] Stripping Quotes > > ('\'','')"> > > > - Original Message - From: "Tom Von Lahndorff" > <[EMAIL PROTECTED]> > > >> Whats the best way to strip (double and/or single) quotes from a >> string in python and/or dtml? Thanks. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Stripping Quotes
Tom Von Lahndorff wrote at 2007-9-4 11:28 -0400: > >doesn't work. the double quotes are not escaped and zope sees them as >the end of the expression. > > > From: "Jaroslav Lukesh" <[EMAIL PROTECTED]> > > Date: August 29, 2007 6:16:12 PM EDT > > To: "Zope user list" , "Tom Von Lahndorff" > > <[EMAIL PROTECTED]> > > Subject: Re: [Zope] Stripping Quotes > > > > > ('\'','')"> It is extremely long ago that I used DMTL intensively. Therefore, I may have forgotten a lot... But, when I remember right, then '"' had to be escaped by '\x22'. I.e. try: Or, to get it a bit more readable: Even better: use a Python Script (to work around DTML's syntactic pitfalls). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Stripping Quotes
doesn't work. the double quotes are not escaped and zope sees them as the end of the expression. > From: "Jaroslav Lukesh" <[EMAIL PROTECTED]> > Date: August 29, 2007 6:16:12 PM EDT > To: "Zope user list" , "Tom Von Lahndorff" > <[EMAIL PROTECTED]> > Subject: Re: [Zope] Stripping Quotes > > ('\'','')"> > > > - Original Message - From: "Tom Von Lahndorff" > <[EMAIL PROTECTED]> > > >> Whats the best way to strip (double and/or single) quotes from a >> string in python and/or dtml? Thanks.___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Stripping Quotes
- Original Message - From: "Tom Von Lahndorff" <[EMAIL PROTECTED]> Whats the best way to strip (double and/or single) quotes from a string in python and/or dtml? Thanks. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Stripping Quotes
Whats the best way to strip (double and/or single) quotes from a string in python and/or dtml? Thanks. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )