1.1 --- a/WebStack/Generic.py Sat Feb 19 14:23:47 2005 +0000
1.2 +++ b/WebStack/Generic.py Sat Feb 19 15:02:33 2005 +0000
1.3 @@ -531,15 +531,25 @@
1.4
1.5 self.user = username
1.6
1.7 - def set_path_info(self, path_info):
1.8 + def set_virtual_path_info(self, path_info):
1.9
1.10 """
1.11 An application-specific method which sets the 'path_info' in the
1.12 - transaction. This affects subsequent calls to 'get_path_info'.
1.13 + transaction. This affects subsequent calls to 'get_virtual_path_info'.
1.14 """
1.15
1.16 self.path_info = path_info
1.17
1.18 + def get_virtual_path_info(self):
1.19 +
1.20 + """
1.21 + An application-specific method which either returns path info set in the
1.22 + 'set_virtual_path_info' method, or the normal path info found in the
1.23 + request.
1.24 + """
1.25 +
1.26 + return self.path_info or self.get_path_info()
1.27 +
1.28 class Resource:
1.29
1.30 "A generic resource interface."