Commit 28ccff68 authored by Aurel's avatar Aurel

fis install of result table and result key


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4885 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc3072e3
......@@ -1950,15 +1950,16 @@ class CatalogResultKeyTemplateItem(BaseTemplateItem):
keys = self._archive.keys()
update_dict = kw.get('object_to_update')
force = kw.get('force')
for key in keys:
if update_dict.has_key(key) or force:
if not force:
action = update_dict[key]
if action == 'nothing':
continue
# XXX same as related key
if update_dict.has_key(key) or force:
if not force:
action = update_dict[key]
if action == 'nothing':
continue
for key in keys:
if key not in sql_search_result_keys:
sql_search_result_keys.append(key)
catalog.sql_search_result_keys = sql_search_result_keys
catalog.sql_search_result_keys = sql_search_result_keys
def uninstall(self, context, **kw):
try:
......@@ -2147,15 +2148,16 @@ class CatalogResultTableTemplateItem(BaseTemplateItem):
keys = self._archive.keys()
update_dict = kw.get('object_to_update')
force = kw.get('force')
for key in keys:
if update_dict.has_key(key) or force:
if not force:
action = update_dict[key]
if action == 'nothing':
continue
# XXX same as related keys
if update_dict.has_key(key) or force:
if not force:
action = update_dict[key]
if action == 'nothing':
continue
for key in keys:
if key not in sql_search_tables:
sql_search_tables.append(key)
catalog.sql_search_tables = sql_search_tables
catalog.sql_search_tables = sql_search_tables
def uninstall(self, context, **kw):
try:
......
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