[Erp5-report] r26321 - /erp5/trunk/products/ERP5/Document/WebSite.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 7 14:00:28 CEST 2009
Author: mame
Date: Tue Apr 7 14:00:25 2009
New Revision: 26321
URL: http://svn.erp5.org?rev=26321&view=rev
Log:
modified so that website is redirected to correct url when id is changed
Modified:
erp5/trunk/products/ERP5/Document/WebSite.py
Modified: erp5/trunk/products/ERP5/Document/WebSite.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/WebSite.py?rev=26321&r1=26320&r2=26321&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSite.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/WebSite.py [utf8] Tue Apr 7 14:00:25 2009
@@ -85,7 +85,7 @@
i += 1
# Insert the web site path after the common part of the path
if path_len > common_index + 1:
- path = website_path + path[common_index + 1:]
+ path = website_path[0:common_index+1] + path[common_index + 1:]
rpp = request.other.get('VirtualRootPhysicalPath', ('', ))
i = 0
for name in rpp[:len(path)]:
@@ -97,6 +97,7 @@
# # Replace the last id of the path with the name which
# # was used to lookup the document
# path = path[:-1] + (self._v_request[DOCUMENT_NAME_KEY],)
+ LOG("Path",0,path)
return path[i:]
def __call__(self, container, request):
@@ -151,6 +152,7 @@
"""
Returns the current web site (ie. self) though containment acquisition
"""
+
return self
# Static Language Selection support
More information about the Erp5-report
mailing list