# HG changeset patch # User paulb # Date 1132967754 0 # Node ID 2e1f060e873b46d48a1871e67485b7ba85e5481d # Parent 105cf9ec789b837ea17702093f250010b47eb49f [project @ 2005-11-26 01:15:51 by paulb] Fixed get_processed_virtual_path_info. diff -r 105cf9ec789b -r 2e1f060e873b README.txt --- a/README.txt Fri Nov 25 16:51:54 2005 +0000 +++ b/README.txt Sat Nov 26 01:15:54 2005 +0000 @@ -63,6 +63,7 @@ Transaction class. * Added get_attributes (attribute support) to the Transaction class. * Added a values method to Helpers.Session.Wrapper. + * Fixed get_processed_virtual_path_info (to match from right to left). * Improved/fixed exception handling in the adapters so that transactions are committed as the final act of an adapter experiencing an unhandled exception. This should result in session stores being closed properly. diff -r 105cf9ec789b -r 2e1f060e873b WebStack/Generic.py --- a/WebStack/Generic.py Fri Nov 25 16:51:54 2005 +0000 +++ b/WebStack/Generic.py Sat Nov 26 01:15:54 2005 +0000 @@ -613,6 +613,11 @@ Where the virtual path info is either an empty string or not a substring of the path info, the entire path info is returned. + + Generally, one should expect the following relationship between the path + info, virtual path info and processed virtual path info: + + path info == processed virtual path info + virtual path info """ real_path_info = self.get_path_info(encoding) @@ -621,7 +626,7 @@ if virtual_path_info == "": return real_path_info - i = real_path_info.find(virtual_path_info) + i = real_path_info.rfind(virtual_path_info) if i == -1: return real_path_info else: diff -r 105cf9ec789b -r 2e1f060e873b packages/ubuntu-hoary/python2.4-webstack/debian/changelog --- a/packages/ubuntu-hoary/python2.4-webstack/debian/changelog Fri Nov 25 16:51:54 2005 +0000 +++ b/packages/ubuntu-hoary/python2.4-webstack/debian/changelog Sat Nov 26 01:15:54 2005 +0000 @@ -10,6 +10,8 @@ * Added get_attributes (attribute support) to the Transaction class. * Added a values method to Helpers.Session.Wrapper. + * Fixed get_processed_virtual_path_info (to match from + right to left). * Improved/fixed exception handling in the adapters so that transactions are committed as the final act of an adapter experiencing an unhandled exception. This should