Commit fcbe09a2 authored by Romain Courteaud's avatar Romain Courteaud

getPhysicalPath returns tuple.

Fix sub_path list generation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26336 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a78cf674
......@@ -234,8 +234,8 @@ class WebSite(WebSection):
# Eliminate path
for section in section_list:
path = section.getPhysicalPath()
for i in range(0, len(path)-1):
sub_path = path[0:i]
for i in range(0, len(path)):
sub_path = tuple(path[0:i])
if section_dict.has_key(sub_path):
del section_dict[sub_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