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 !! regards Nuno
"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
On Wed, 7 Mar 2001, nuno wrote:
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 !!
Have you tried to <dtml-let my_str='my secret name is "pup"'> that should work. -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
i tried and it causes this exception in zope invalid parameter: "secret name is "pup"'", for tag <dtml-let my_str='my secret name is "pup"'>, on line 48 : ( thanks anyway ----- Original Message ----- From: "Joel Burton" <jburton@scw.org> To: "nuno" <nuno@fccn.pt> Cc: <zope@zope.org> Sent: Wednesday, March 07, 2001 6:29 PM Subject: Re: [Zope] " in a let
On Wed, 7 Mar 2001, nuno wrote:
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 !!
Have you tried to
<dtml-let my_str='my secret name is "pup"'>
that should work.
-- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
participants (3)
-
Joel Burton -
nuno -
Siggy Brentrup