[Zope] " in a let

Siggy Brentrup bsb@winnegan.de
07 Mar 2001 19:28:36 +0100


"nuno" <nuno@fccn.pt> writes:

> 1.  (*) text/plain          ( ) text/html           

Kindly configure your mailer to send only text/plain, the text/html
part is only waste of bandwidth (cf footers attached to each posting
on this list

> Hi all !
> Has anyone accomplish to create a string in dtml which has a " (quote)
> 
> something like
> 
> <dtml-let my_str="aaabbb " aaabbb">
> </dtml-let>
> 
> I have tried the normal escape character \
> but it didn't worked !!! : (
> 
> <dtml-let my_str="aaabbb \" aaabbb">
> </dtml-let>
> 
> 
> I think that the use of " in a string is a problem in redering dtml !!!
> am i wrong !!!
> please tell me that i am !!

If you insist: you are wrong :-)

<dtml-let my_str="'aaabbb \42 aaabbb'">
</dtml-let>

Double-quotes delimit the python expression, since your expression is
a string constant use single quotes, finally \42 is the octal
representation of the double-quote and it doesn't interfere with the
dtml-tokenizer. 

HIH
  Siggy