1.1 --- a/WebStack/JavaServlet.py Sat Jan 29 23:34:57 2005 +0000
1.2 +++ b/WebStack/JavaServlet.py Sat Feb 19 14:01:32 2005 +0000
1.3 @@ -68,6 +68,7 @@
1.4 self.response = response
1.5 self.status = None
1.6 self.user = None
1.7 + self.path_info = None
1.8
1.9 # Remember the cookies received in the request.
1.10 # NOTE: Discarding much of the information received.
1.11 @@ -210,7 +211,10 @@
1.12 handling the current request) from the request.
1.13 """
1.14
1.15 - return self.request.getPathInfo() or ""
1.16 + if self.path_info is not None:
1.17 + return self.path_info
1.18 + else:
1.19 + return self.request.getPathInfo() or ""
1.20
1.21 def get_query_string(self):
1.22
1.23 @@ -487,18 +491,6 @@
1.24 if session:
1.25 session.invalidate()
1.26
1.27 - # Application-specific methods.
1.28 -
1.29 - def set_user(self, username):
1.30 -
1.31 - """
1.32 - An application-specific method which sets the user information with
1.33 - 'username' in the transaction. This affects subsequent calls to
1.34 - 'get_user'.
1.35 - """
1.36 -
1.37 - self.user = username
1.38 -
1.39 # Special Java-specific methods.
1.40
1.41 def _get_fields_from_message(self):