[Erp5-report] r18050 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 6 12:32:11 CET 2007
Author: ivan
Date: Thu Dec 6 12:32:10 2007
New Revision: 18050
URL: http://svn.erp5.org?rev=18050&view=rev
Log:
Do not fail when doing an update of business template on old catalog instance (ERP5 site).
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=18050&r1=18049&r2=18050&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Thu Dec 6 12:32:10 2007
@@ -3285,7 +3285,7 @@
if catalog is None:
LOG('BusinessTemplate', 0, 'no SQL catalog was available')
return
- sql_datetime_keys = list(catalog.sql_catalog_datetime_search_keys)
+ sql_datetime_keys = list(getattr(catalog, 'sql_catalog_datetime_search_keys', []))
key_list = []
for key in self._archive.keys():
if key in sql_datetime_keys:
@@ -3311,7 +3311,7 @@
LOG('BusinessTemplate', 0, 'no SQL catalog was available')
return
- sql_datetime_keys = list(catalog.sql_catalog_datetime_search_keys)
+ sql_datetime_keys = list(getattr(catalog, 'sql_catalog_datetime_search_keys', []))
if context.getTemplateFormatVersion() == 1:
if len(self._objects.keys()) == 0: # needed because of pop()
return
@@ -3338,7 +3338,7 @@
if catalog is None:
LOG('BusinessTemplate', 0, 'no SQL catalog was available - uninstall')
return
- sql_datetime_keys = list(catalog.sql_catalog_datetime_search_keys)
+ sql_datetime_keys = list(getattr(catalog, 'sql_catalog_datetime_search_keys', []))
object_path = kw.get('object_path', None)
if object_path is not None:
object_keys = [object_path]
More information about the Erp5-report
mailing list