1.1 --- a/WebStack/Zope.py Thu Nov 04 17:11:21 2004 +0000
1.2 +++ b/WebStack/Zope.py Mon Nov 15 23:35:31 2004 +0000
1.3 @@ -19,14 +19,16 @@
1.4 Zope transaction interface.
1.5 """
1.6
1.7 - def __init__(self, request):
1.8 + def __init__(self, request, adapter):
1.9
1.10 """
1.11 - Initialise the transaction with the Zope 'request' object.
1.12 + Initialise the transaction with the Zope 'request' object and the
1.13 + 'adapter' which created this transaction.
1.14 """
1.15
1.16 self.request = request
1.17 self.response = request.RESPONSE
1.18 + self.adapter = adapter
1.19
1.20 # Cached information.
1.21
1.22 @@ -140,7 +142,9 @@
1.23 handling the current request) from the request.
1.24 """
1.25
1.26 - return self.request.environ.get("PATH_INFO") or ""
1.27 + product_path = "/".join(self.adapter.getPhysicalPath())
1.28 + path_info = self.request.environ.get("PATH_INFO") or ""
1.29 + return path_info[len(product_path):]
1.30
1.31 def get_query_string(self):
1.32