Commit 6cbe7bb9 authored by Aurel's avatar Aurel

at uninstall get list of objects depending of the format


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4814 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e0f6818
......@@ -566,7 +566,10 @@ class ObjectTemplateItem(BaseTemplateItem):
if object_path is not None:
object_keys = [object_path]
else:
object_keys = self._archive.keys()
if context.getTemplateFormatVersion() == 1:
object_keys = self._objects.keys()
else:
object_keys = self._archive.keys()
for relative_url in object_keys:
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