Commit e8e949ec authored by Aurel's avatar Aurel

sort path returned by resolvedPath before uninstalling path in order to delete

object in the right order


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10927 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ecaa9a63
......@@ -777,10 +777,11 @@ class PathTemplateItem(ObjectTemplateItem):
object_keys.sort()
object_keys.reverse()
p = context.getPortalObject()
object_keys.sort()
object_keys.reverse()
for path in object_keys:
for relative_url in self._resolvePath(p, [], path.split('/')):
path_list = self._resolvePath(p, [], path.split('/'))
path_list.sort()
path_list.reverse()
for relative_url in path_list:
try:
container_path = relative_url.split('/')[0:-1]
object_id = relative_url.split('/')[-1]
......
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