Commit 28ae9bd6 authored by Aurel's avatar Aurel

don't take into account / at tail of path


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5046 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e677bdb1
...@@ -643,6 +643,7 @@ class PathTemplateItem(ObjectTemplateItem): ...@@ -643,6 +643,7 @@ class PathTemplateItem(ObjectTemplateItem):
return self._resolvePath(obj, relative_url_list + [id], id_list[1:]) return self._resolvePath(obj, relative_url_list + [id], id_list[1:])
path_list = [] path_list = []
for object_id in fnmatch.filter(folder.objectIds(), id): for object_id in fnmatch.filter(folder.objectIds(), id):
if object_id != "":
path_list.extend(self._resolvePath(folder._getOb(object_id), relative_url_list + [object_id], id_list[1:])) path_list.extend(self._resolvePath(folder._getOb(object_id), relative_url_list + [object_id], id_list[1:]))
return path_list return path_list
......
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