Commit 235c9b5d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use original physicalPathToVirtualPath() for ignore_layout mode. this...

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').


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27788 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f0b677d8
...@@ -35,6 +35,7 @@ from Products.ERP5Type.Cache import CachingMethod ...@@ -35,6 +35,7 @@ from Products.ERP5Type.Cache import CachingMethod
from Globals import get_request from Globals import get_request
from Persistence import Persistent from Persistence import Persistent
from ZPublisher import BeforeTraverse from ZPublisher import BeforeTraverse
from ZPublisher.HTTPRequest import HTTPRequest
from zLOG import LOG from zLOG import LOG
...@@ -66,7 +67,7 @@ class WebSiteTraversalHook(Persistent): ...@@ -66,7 +67,7 @@ class WebSiteTraversalHook(Persistent):
# In ignore_layout case, we only remove empty element from path # In ignore_layout case, we only remove empty element from path
# XXX more support required for ignore_layout? # XXX more support required for ignore_layout?
if request.get('ignore_layout', None): 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) website_path = request.get(WEBSITE_KEY, None)
select_language = request.get(WEBSITE_LANGUAGE_KEY, None) select_language = request.get(WEBSITE_LANGUAGE_KEY, None)
if website_path: if website_path:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment