Ian Bicking [mailto:[EMAIL PROTECTED] wrote: >
[My patch to Application with respect to virtual resources.] > This actually doesn't handle virtual resources. Unlike mod_python, > URLParser adds the extension itself, so it has to have a filesystem to > search. The assumption of a file is carried on into ServletFactory, at > least into the caching that is performed. Perhaps I should really look at Webware CVS rather than Webware 0.8, which is where my patch can be applied. Aside from the exact implementation, however, it seems that the URL mapping issue is something which, as you probably noticed in the PyWeb discussions, no-one can agree on very easily. The nice thing about mod_python's mapping is that one just declares an extension (very similar to Webware servlet factories claiming extensions) and the handler picks up all resources with such extensions. In effect, the Apache "Location" directive describes something comparable to a Webware context and the "PythonHandler" directive (if that's what it's called) nominates something comparable to a servlet factory. What Webware could do well to emulate here is the absence of any kind of direct reference to on-the-filesystem servlet resources until the servlet factory (cf. mod_python handler) is in control and can decide whether the requested resources really do map to physical resources. Add in the simplicity of specifying all this in mod_python (and I don't believe Webware is far off from this as it is) and Webware gains both new capabilities and increased compatibility (at least conceptually) with mod_python. Paul ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel