1.1 --- a/WebStack/Zope.py Sat Jan 29 23:34:57 2005 +0000
1.2 +++ b/WebStack/Zope.py Sat Feb 19 14:01:32 2005 +0000
1.3 @@ -38,6 +38,7 @@
1.4
1.5 self.content_type = None
1.6 self.user = None
1.7 + self.path_info = None
1.8
1.9 # Request-related methods.
1.10
1.11 @@ -142,9 +143,12 @@
1.12 handling the current request) from the request.
1.13 """
1.14
1.15 - product_path = "/".join(self.adapter.getPhysicalPath())
1.16 - path_info = self.request.environ.get("PATH_INFO") or ""
1.17 - return path_info[len(product_path):]
1.18 + if self.path_info is not None:
1.19 + return self.path_info
1.20 + else:
1.21 + product_path = "/".join(self.adapter.getPhysicalPath())
1.22 + path_info = self.request.environ.get("PATH_INFO") or ""
1.23 + return path_info[len(product_path):]
1.24
1.25 def get_query_string(self):
1.26
1.27 @@ -408,16 +412,4 @@
1.28
1.29 self.request.SESSION.invalidate()
1.30
1.31 - # Application-specific methods.
1.32 -
1.33 - def set_user(self, username):
1.34 -
1.35 - """
1.36 - An application-specific method which sets the user information with
1.37 - 'username' in the transaction. This affects subsequent calls to
1.38 - 'get_user'.
1.39 - """
1.40 -
1.41 - self.user = username
1.42 -
1.43 # vim: tabstop=4 expandtab shiftwidth=4