[Zope] Why is index_html() called instead of __call__()?

Kyler Laird Kyler@Lairds.com
Mon, 6 Jan 2003 11:25:39 -0500


On Mon, Jan 06, 2003 at 11:18:19AM -0500, Brian Lloyd wrote:

> > >         # alias to be sure we always control our rendering
> > > 	  index_html = __call__
> > 
> > This would result in never being able to call the index_html in the
> > ZODB.

> Sure you could :) You just have to do it explicitly:

I should have been more explicit.  I can never call the index_html
in that PropertyFolder.  In fact, I can't even create it.  (Yes, I
tried this approach for awhile.)

My solution is to use "index" instead of "index_html" in the ZODB.
("index_html" always struck me as a really dumb name for something
that might not even generate HTML.  Regardless, having a content
type in a URL is embarrassing.)  I already stopped using index_html
in most of my systems long ago, so this shouldn't be a big deal
unless users import things from elsewhere.

Thank you for the suggestion.

--kyler