[Erp5-report] r17360 - /erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 2 14:29:54 CET 2007
Author: aurel
Date: Fri Nov 2 14:29:54 2007
New Revision: 17360
URL: http://svn.erp5.org?rev=17360&view=rev
Log:
small optimisation to avoid an unecessary call when not using archive
Modified:
erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py
Modified: erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py?rev=17360&r1=17359&r2=17360&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py (original)
+++ erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py Fri Nov 2 14:29:54 2007
@@ -698,10 +698,10 @@
wrapped_object_list = []
failed_object_list = []
url_list = []
+ archive_list = []
if getattr(self, "portal_archives", None) is not None:
- archive_list = self.portal_archives.getArchiveList()
- else:
- archive_list = []
+ if len(self.portal_archives):
+ archive_list = self.portal_archives.getArchiveList()
catalog_dict = {}
More information about the Erp5-report
mailing list