fowlertrainer@anonym.hu wrote:
Hello zope,
I don't understand why the zope render some objects, and not render others.
I have been used an minimal product to test it:
When I write this: class .... .... def index_html(self): "used to view content of the object" import Globals df=Globals.DTMLFile('www/index',globals()) return df
Zope is not rendering the result.
When I write this: class .... .... import Globals index_html=Globals.DTMLFile('www/index',globals())
Zope is rendering my dtml file in correct way.
So: if I do same things, zope why don't do same results ???
Look at problem this way, "if zope don't do same results, I'm doing the same thing?". The first index_html returns a DTMLMethod instance (IIRC), while the second one *IS* a DTMLMethod instance, and so, when called, renders the DTMLMethod. HTH -- //// (@ @) ---------------------------oOO----(_)----OOo------------------------ Los pecados de los tres mundos desapareceran conmigo. Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) --------------------------------------------------------------------