[Zope] Re: index_html always seems to exist
Tue, 27 May 2003 11:17:04 +0200
> I did.
> mentions nothing about index_html...
Actually the thing is that if index_html isn't in the current folder, then
zope will search
it in the parent folder till it finds something (that's Acquisition).
Usually all zopes have
this file in the root folder by default, so zope will allways find
As Dylan said, search "objectIds" in the help of your zope. It returns a
list of the files
in the current folder, so you could do something like:
if not file in context.objectIds():
context.invokeFactory('Member Profile', id=file, title=file)