# HG changeset patch # User paulb # Date 1133889529 0 # Node ID 7eceec9e28b4574c50900991b88abf966803a796 # Parent f38557c9fbd7da74f5d54955bd520dbee2740d16 [project @ 2005-12-06 17:18:49 by paulb] Fixed update_path so that the root path is always preserved. Updated version number. diff -r f38557c9fbd7 -r 7eceec9e28b4 WebStack/Generic.py --- a/WebStack/Generic.py Tue Dec 06 17:17:43 2005 +0000 +++ b/WebStack/Generic.py Tue Dec 06 17:18:49 2005 +0000 @@ -672,6 +672,8 @@ trans.update_path("/parent/node/", "../../other") -> "/other" + trans.update_path("/parent/node", "..") -> "/" + Where 'relative_path' begins with "/", the 'path' is reset to "/" and the components of the 'relative_path' are then applied to that new path: @@ -712,7 +714,7 @@ else: parts.append(rpart) - return "/".join(parts) + return "/" + "/".join(parts[1:]) def redirect(self, path, code=302): diff -r f38557c9fbd7 -r 7eceec9e28b4 WebStack/__init__.py --- a/WebStack/__init__.py Tue Dec 06 17:17:43 2005 +0000 +++ b/WebStack/__init__.py Tue Dec 06 17:18:49 2005 +0000 @@ -20,6 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -__version__ = "1.1" +__version__ = "1.1.1" # vim: tabstop=4 expandtab shiftwidth=4