[Zope] display object without index_html

Dieter Maurer dieter at handshake.de
Thu May 19 13:51:47 EDT 2005


Christopher Rivard wrote at 2005-5-18 11:51 -0600:
>i am developing a Zope product (2.7) with a "homepage" content type and
>want this object to display as the index of a folder.
>for other custom objects, i have display methods that call an index view
>( using DTMLFile) of the object like this:
>
>#homepage view
>index_html = DTMLFile('dtml/indexHomepage', globals())
>
>i want this object to display as the index of the folder without:

The rules for 'GET' requests are as follows:

  Perform url traversal to locate the object.
  If this object's "index_html" (maybe acquired) is 'None',
  then call the object; otherwise, use "index_html".

Thus, you archive what you want by:

  index_html = None
  __call__ = DTMLFile(...)

-- 
Dieter


More information about the Zope mailing list