Dear Zope users and helpers; I have another problem and am stumped. I am creating a product that generates a load of dynamic bioinformatics information. Some content is displayed through DTML documents and methods that live within the ZMI. Other content lives in a collection of python classes within the product. I have a couple of instances when I would like a product to read some parsed DTML from the ZMI (to allow changes in layout / requested content etc). I collect the text from the Zope documents by 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? Any help would be very gratefully received Thanks Stephen ----------------------------------------- Dr Stephen Rudd - genome astronomer Bioinformatics group Turku Centre for Biotechnology Tel. +358 2 333 8611 Fax. +358 2 333 8000 ------------------------------------------
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@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
participants (2)
-
Matt Hamilton -
Stephen Rudd