# HG changeset patch # User paulb # Date 1124729057 0 # Node ID 6ecdfe585444b3ecb7e0d103d1ccfd9edf2dd932 # Parent 547a5f145818aadb4ca9ca374b94e03dbba8a8b4 [project @ 2005-08-22 16:44:14 by paulb] Fixed non-existent resource handling in MapResource. diff -r 547a5f145818 -r 6ecdfe585444 README.txt --- a/README.txt Mon Aug 22 11:49:11 2005 +0000 +++ b/README.txt Mon Aug 22 16:44:17 2005 +0000 @@ -65,8 +65,8 @@ path info not represented in the current virtual path info. Added "pass through" behaviour to ResourceMap.MapResource (prompted by a patch from Scott Robinson). -Changed the ResourceMap.MapResource class to provide the empty string as the -resource name where the virtual path info is only one component in length. +Fixed ResourceMap.MapResource to handle non-existent resources properly (where +the virtual path info is only one component in length). Added a convenience method to Transaction for the decoding of path values and the production of Unicode objects - see the get_readable_path method. diff -r 547a5f145818 -r 6ecdfe585444 WebStack/Resources/ResourceMap.py --- a/WebStack/Resources/ResourceMap.py Mon Aug 22 11:49:11 2005 +0000 +++ b/WebStack/Resources/ResourceMap.py Mon Aug 22 16:44:17 2005 +0000 @@ -102,7 +102,8 @@ elif self.directory_redirects: self.send_redirect(trans) else: - name = "" + self.send_error(trans) + return # Get the mapped resource.