[Zope] DTML inside zope products

Matt Hamilton matth at netsight.co.uk
Tue Apr 20 08:55:25 EDT 2004


Stephen Rudd wrote:

> for object in self.objectValues():
> 	text += object.read()
> 
> This works well, but the returned DTML remains as unparsed DTML. What
> should I be doing to recover the parsed DTML?
> 

Stephen,

   Object.read() returns the raw text of the DTML object.  You need to 
actually call the object itself.

Try:

for object in self.objectValues():
   text += object(self, self.REQUEST)

Hope this helps

-Matt

-- 
Matt Hamilton                                       matth at netsight.co.uk
Netsight Internet Solutions, Ltd.        Business Vision on the Internet
http://www.netsight.co.uk                             +44 (0)117 9090901
Web Design | Zope/Plone Development & Consulting | Co-location | Hosting



More information about the Zope mailing list