1.1 --- a/WebStack/Generic.py Tue Dec 06 17:17:43 2005 +0000
1.2 +++ b/WebStack/Generic.py Tue Dec 06 17:18:49 2005 +0000
1.3 @@ -672,6 +672,8 @@
1.4
1.5 trans.update_path("/parent/node/", "../../other") -> "/other"
1.6
1.7 + trans.update_path("/parent/node", "..") -> "/"
1.8 +
1.9 Where 'relative_path' begins with "/", the 'path' is reset to "/" and
1.10 the components of the 'relative_path' are then applied to that new path:
1.11
1.12 @@ -712,7 +714,7 @@
1.13 else:
1.14 parts.append(rpart)
1.15
1.16 - return "/".join(parts)
1.17 + return "/" + "/".join(parts[1:])
1.18
1.19 def redirect(self, path, code=302):
1.20
2.1 --- a/WebStack/__init__.py Tue Dec 06 17:17:43 2005 +0000
2.2 +++ b/WebStack/__init__.py Tue Dec 06 17:18:49 2005 +0000
2.3 @@ -20,6 +20,6 @@
2.4 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
2.5 """
2.6
2.7 -__version__ = "1.1"
2.8 +__version__ = "1.1.1"
2.9
2.10 # vim: tabstop=4 expandtab shiftwidth=4