1.1 --- a/WebStack/ModPython.py Thu Jan 29 23:42:47 2004 +0000
1.2 +++ b/WebStack/ModPython.py Sun Feb 01 15:28:08 2004 +0000
1.3 @@ -73,6 +73,14 @@
1.4
1.5 return self.parse_content_preferences(self.trans.headers_in["Accept-Language"])
1.6
1.7 + def get_path(self):
1.8 +
1.9 + """
1.10 + A framework-specific method which gets the entire path from the request.
1.11 + """
1.12 +
1.13 + return self.trans.uri
1.14 +
1.15 def get_path_info(self):
1.16
1.17 """
1.18 @@ -81,7 +89,7 @@
1.19 request.
1.20 """
1.21
1.22 - raise NotImplementedError, "get_path_info"
1.23 + raise self.trans.path_info
1.24
1.25 # Higher level request-related methods.
1.26
1.27 @@ -121,8 +129,6 @@
1.28 response.
1.29 """
1.30
1.31 - # Make sure that only ASCII is used in the header.
1.32 -
1.33 - self.trans.content_type = content_type.encode("US-ASCII")
1.34 + self.trans.content_type = self.format_content_type(content_type)
1.35
1.36 # vim: tabstop=4 expandtab shiftwidth=4