1.1 --- a/WebStack/Resources/ResourceMap.py Sat Jul 16 20:32:12 2005 +0000
1.2 +++ b/WebStack/Resources/ResourceMap.py Sat Jul 16 20:32:38 2005 +0000
1.3 @@ -40,7 +40,8 @@
1.4 # path info consists of a "/" character plus some other text), the first
1.5 # part should always be empty and there should always be a second part.
1.6 # Where the published resource has no path info defined, there will only
1.7 - # be one part. In the latter case, we define the name to be None.
1.8 + # be one part. In the latter case, we define the name to be None,
1.9 + # although the name will not be relevant if directory_redirects is set.
1.10
1.11 if len(parts) > 1:
1.12 name = parts[1]
1.13 @@ -58,9 +59,9 @@
1.14 # If a resource was found, change the transaction's path info.
1.15 # eg. "/this/next" -> "/next"
1.16 # eg. "/this/" -> "/"
1.17 - # eg. "/this" -> "/"
1.18 + # eg. "/this" -> ""
1.19
1.20 - new_path = parts[0:1] + (parts[2:] or [""])
1.21 + new_path = parts[0:1] + parts[2:]
1.22 new_path_info = "/".join(new_path)
1.23 trans.set_virtual_path_info(new_path_info)
1.24