25 May
2005
25 May
'05
8:52 a.m.
Dieter Maurer wrote:
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(...)
There's also that hook to specify the name of the method to look for instead of index_html. As I understand it, this code is in Zope, and has been for ages, even for normal folders, it's just that no one got around to implementing a ZMI UI for it :-S cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk