[Zope] How to stop html_quoting in a Zclass method

Denis Frère spirou@carolo.net
Mon, 10 Apr 2000 00:43:12 +0200


I don't know if this problem has some connection with other threads
running now, but I don't understand when the text is html_quoted or not
?

I've such a behaviour with Zclass method.
If I call it :
  <dtml-var "myinstance.method">
the text is html_quoted.

If I call it :
  <dtml-with myinstance>
    <dtml-var method>
  </dtml-with>
the text is not html_quoted and so, there's no problem.

I've seen in a previous message :

------<abstract>-----------------------------------------

Subject: Re: [Zope] text type
   Date: Sat, 8 Apr 2000 16:32:01 -0400 (EDT)
   From: "R. David Murray" <bitz@bitdance.com>

In any case, I suspect that
<dtml-with Object>
  <dtml-var property>
</dtml-with>
will print what you expect.  (The quotes required to get Object.property
to work change the rules about how an object is interpreted: inside
the quotes you are operating in Python rather than DTML).

------</abstract>--------------------------------------

It could be the beginning of an answer. But why Python would html_quote
a string and dtml wouldn't ?

Is there a solution but playing with <dtml-with> ?

Thanks


-- 
Denis Frère
  P3B  : Club Free-Pytho-Linuxien Carolorégien
         http://www.carolo.net