[Zope] using a DTMLFile in a python product method

Matthew Wilbert mwilbert@alum.mit.edu
Wed, 20 Jun 2001 08:59:05 -0700


I have a method in a python product where I return different
forms based upon a REQUEST parameter.  If I construct the returned html a=
s a python string and return it, it works fine.  But it seems more sensib=
le to save the html as a template and then return that.  So I created a t=
emplate file, and used it to create a DTMLFile instance.  The problem is =
that if I return this instance, it is returned html-quoted, which isn't w=
hat I want.  Looking at the code, I can see this is the expected behavior=
 if you convert it to string, but that isn't being done, explicitly.at le=
ast.

Anyone know how to get it to show up unquoted?

Matt Wilbert
mwilbert@alum.mit.edu
_________________________________________________________________________=
__
Visit http://www.visto.com/info, your free web-based communications cente=
r.
Visto.com. Life on the Dot.