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
...@@ -565,6 +565,9 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -565,6 +565,9 @@ class ObjectTemplateItem(BaseTemplateItem):
object_path = kw.get('object_path', None) object_path = kw.get('object_path', None)
if object_path is not None: if object_path is not None:
object_keys = [object_path] object_keys = [object_path]
else:
if context.getTemplateFormatVersion() == 1:
object_keys = self._objects.keys()
else: else:
object_keys = self._archive.keys() object_keys = self._archive.keys()
for relative_url in object_keys: for relative_url in object_keys:
......
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