[Zope] DTMLFile usage

fowlertrainer at anonym.hu fowlertrainer at anonym.hu
Mon Jan 19 09:17:49 EST 2004


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 ???

  The calling zpt is this:
  <p tal:replace="structure here/minimal/index_html"/>
  
-- 
Best regards,
 fowlertrainer                          mailto:fowlertrainer at anonym.hu




More information about the Zope mailing list