# HG changeset patch # User paulb # Date 1124458011 0 # Node ID 9caf7cb6b965a8e8618d113e3c7fd40e99517e86 # Parent 01e89f64b099ab8ea7257aa0137144dcc8c3643a [project @ 2005-08-19 13:26:51 by paulb] Changed the default name for insufficiently long virtual path info values. diff -r 01e89f64b099 -r 9caf7cb6b965 WebStack/Resources/ResourceMap.py --- a/WebStack/Resources/ResourceMap.py Fri Aug 19 13:26:25 2005 +0000 +++ b/WebStack/Resources/ResourceMap.py Fri Aug 19 13:26:51 2005 +0000 @@ -58,15 +58,16 @@ # path info consists of a "/" character plus some other text), the first # part should always be empty and there should always be a second part. # Where the published resource has no path info defined, there will only - # be one part. In the latter case, we define the name to be None, - # although the name will not be relevant if directory_redirects is set. + # be one part. In the latter case, we define the name to be the empty + # string, although the name will not be relevant if directory_redirects + # is set. if len(parts) > 1: name = parts[1] elif self.directory_redirects: self.send_redirect(trans) else: - name = None + name = "" # Get the mapped resource.