[Erp5-report] r27788 - /erp5/trunk/products/ERP5/Document/WebSite.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 24 16:20:38 CEST 2009


Author: kazuhiko
Date: Wed Jun 24 16:20:37 2009
New Revision: 27788

URL: http://svn.erp5.org?rev=27788&view=rev
Log:
use original physicalPathToVirtualPath() for ignore_layout mode. this modification should fix several functional tests failures ('Test Previous Next Selection In Website' and 'Test Change Id Website').

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=27788&r1=27787&r2=27788&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSite.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/WebSite.py [utf8] Wed Jun 24 16:20:37 2009
@@ -35,6 +35,7 @@
 from Globals import get_request
 from Persistence import Persistent
 from ZPublisher import BeforeTraverse
+from ZPublisher.HTTPRequest import HTTPRequest
 
 from zLOG import LOG
 
@@ -66,7 +67,7 @@
     # In ignore_layout case, we only remove empty element from path
     # XXX more support required for ignore_layout?
     if request.get('ignore_layout', None):
-      return tuple([x for x in path if x])
+      return HTTPRequest.physicalPathToVirtualPath(request, path)
     website_path = request.get(WEBSITE_KEY, None)
     select_language = request.get(WEBSITE_LANGUAGE_KEY, None)
     if website_path:




More information about the Erp5-report mailing list