On Mon, 13 Aug 2001, Dieter Maurer wrote:
Michiel Toneman writes:
... If I call it index_html, the following URLs get me a zero sized reply of mime-type text/x-unknown-content-type.
http://server/MyFolder/ http://server/MyFolder/index_html
However, I can use the object as
http://server/MyFolder/index_html/index_html This is an effect of the following ZPublisher code (from "ZPublisher.BaseRequest.BaseRequest.traverse"): # Check for method: if path: entry_name = path.pop() elif (method and hasattr(object,method) and entry_name != method and getattr(object, method) is not None): request._hacked_path=1 entry_name = method
It explicitely checks for "entry_name != method". This probably has the purpose to avoid infinite loops.
In your case, "method" is "index_html".
Hi Dieter Thanks for the explanation! I've tried the solution Geir B�kholt sent me (inheriting from the Renderable-ZClass product) which worked like a charm :-) I'd already started on a custom folderish ZClass to hack around the problem, but now I only need a small adjustment to my original Product (i.e. there has to be a render method, which only calls "<dtml-var index_html>". Thanks for your help! Greetings, Michiel Toneman -- Anthony's Law of Force: Don't force it; get a larger hammer.