Commit 1a02f02e authored by Aurel's avatar Aurel

small optimisation to avoid an unecessary call when not using archive


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17360 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 723c63d0
...@@ -698,10 +698,10 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -698,10 +698,10 @@ class ZCatalog(Folder, Persistent, Implicit):
wrapped_object_list = [] wrapped_object_list = []
failed_object_list = [] failed_object_list = []
url_list = [] url_list = []
archive_list = []
if getattr(self, "portal_archives", None) is not None: if getattr(self, "portal_archives", None) is not None:
archive_list = self.portal_archives.getArchiveList() if len(self.portal_archives):
else: archive_list = self.portal_archives.getArchiveList()
archive_list = []
catalog_dict = {} catalog_dict = {}
......
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