[Zope] display object without index_html
Jim Abramson
jabramson at wgen.net
Thu May 19 09:54:32 EDT 2005
Though less elegant, perhaps this will work:
dtmlIndex = DTMLFile('dtml/indexHomepage', globals())
def index_html(self):
"""
docstring!
"""
return self.dtmlIndex(self,self.REQUEST)
hth,
Jim
> -----Original Message-----
> From: zope-bounces+jabramson=wgen.net at zope.org
> [mailto:zope-bounces+jabramson=wgen.net at zope.org] On Behalf
> Of Christopher Rivard
> Sent: Wednesday, May 18, 2005 1:51 PM
> To: zope at zope.org
> Subject: [Zope] display object without index_html
>
> 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:
>
> folder/index_html/index_html
>
> however, when i render the object, i get:
>
> <Homepage at index_html>
>
> remove display:
>
> http://localhost:8080/www/index_html/index_html has an empty
> or missing docstring. Objects must have a docstring to be published.
>
> how can i ensure that an "homepage" object with an id of
> index_html will display as the index of a folder (without
> calling folder/index_html/index_html)?
> i hope i explained this coherently...
>
> any insight would be greatly appreciated-
>
> Thanks,
> Chris
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
More information about the Zope
mailing list