Commit 4e99c3de authored by Alexandre Boeglin's avatar Alexandre Boeglin

forgot to replace one variable name.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2760 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d0666d52
...@@ -101,6 +101,7 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -101,6 +101,7 @@ class ObjectTemplateItem(BaseTemplateItem):
while new_object_id in container_ids: while new_object_id in container_ids:
n = n + 1 n = n + 1
new_object_id = '%s_btsave_%s' % (object_id, n) new_object_id = '%s_btsave_%s' % (object_id, n)
LOG('_backupObject', 0, repr((container, object_id, new_object_id)))
container.manage_renameObject(object_id, new_object_id) container.manage_renameObject(object_id, new_object_id)
def install(self, context, **kw): def install(self, context, **kw):
...@@ -839,7 +840,7 @@ class CatalogRelatedKeyTemplateItem(BaseTemplateItem): ...@@ -839,7 +840,7 @@ class CatalogRelatedKeyTemplateItem(BaseTemplateItem):
LOG('BusinessTemplate', 0, 'no SQL catalog was available') LOG('BusinessTemplate', 0, 'no SQL catalog was available')
return return
sql_search_result_keys = list(catalog.sql_catalog_related_keys) sql_catalog_related_keys = list(catalog.sql_catalog_related_keys)
for key in self._archive.keys(): for key in self._archive.keys():
if key in sql_catalog_related_keys: if key in sql_catalog_related_keys:
sql_catalog_related_keys.remove(key) sql_catalog_related_keys.remove(key)
......
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