--> Sunday, February 22, 2004, 4:55:05 AM, [EMAIL PROTECTED] wrote: >> Well, the code works, and the functionality exists everywhere else. If >> this simple functionality never makes it into Webware, I will not use >> it. I cannot use a web platform which does not know where its root is.
> DOCUMENT_ROOT can't reliably be used to find a file for a URL. There > are many possible configurations that can effect URL-to-file mappings, > and DOCUMENT_ROOT will not indicate any of those. Perhaps this works > for your Apache configuration, but for many people it won't work. If > it uses DOCUMENT_ROOT it doesn't even make sense for most Webware > configurations, only for configurations that use psp-handler -- other > configurations involve the kind of URL mappings that this specifically > doesn't support. > As a compromise, I might suggest that the methods be refactored so you > can more easily override a single method to do what you want without > having to muck with other stuff. Your patch could even be dynamically > applied in your context's __init__.py It's not a patch, it's my hack to show someone who cares what functionality is missing, since I explained before and this was requested instead. I know DOCUMENT_ROOT is server dependent. I do not believe the ability to detect the website root is. Never have I mentioned DOCUMENT_ROOT until now. I do not care about DOCUMENT_ROOT. Yes, it may so happen that the powers that be decided to use DOCUMENT_ROOT for some implementations of this valuable feature, but that is not relevant to me. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss