[Zope] How to use double quotes (") in a string in a python expression in dtml

Igor Leturia IGOR@emun.com
Thu, 21 Mar 2002 14:45:46 +0100


  Hi all!

  I want to check in dtml if a string variable contains double quotes
("), so I include a python expression in a dtml-if, something like this:

  <dtml-if "_.string.find(s,'"')<>-1">

  Of course, this doesn't work as the dtml interpreter thinks the " is
the end of the python expression. But I tried it with \" also, and it
doesn't work.

  Any ideas?

					Igor Leturia