# HG changeset patch # User paulb # Date 1108822571 0 # Node ID 1e45ba0758fbc54a9c6719209c012a53c9bf7ae0 # Parent 5710c724838dbd61b4616dc093b97c95bc22749b [project @ 2005-02-19 14:16:11 by paulb] Changed the new path info so that it always has at least two components, resulting in "/" if nothing more. diff -r 5710c724838d -r 1e45ba0758fb WebStack/Resources/ResourceMap.py --- a/WebStack/Resources/ResourceMap.py Sat Feb 19 14:01:49 2005 +0000 +++ b/WebStack/Resources/ResourceMap.py Sat Feb 19 14:16:11 2005 +0000 @@ -36,18 +36,16 @@ name = parts[1] else: name = None - print "*", name # Get the mapped resource. resource = self.mapping.get(name) - print "**", resource # If a resource was found, change the transaction's path info, then # invoke the transaction, transferring control completely. - new_path_info = "/".join(parts[0:1] + parts[2:]) - print "***", new_path_info + new_path = parts[0:1] + (parts[2:] or [""]) + new_path_info = "/".join(new_path) trans.set_path_info(new_path_info) if resource is not None: