Commit cfa56286 authored by Rafael Monnerat's avatar Rafael Monnerat

Use isCatalogUpdatable if no update_catalog is provided

Due the presence of object_to_update, the API will never update the catalog
if we do not provide explicitly values.
parent 6135c8ea
...@@ -1404,15 +1404,14 @@ class TemplateTool (BaseTool): ...@@ -1404,15 +1404,14 @@ class TemplateTool (BaseTool):
log('Execute %r' % before_triggered_bt5_id) log('Execute %r' % before_triggered_bt5_id)
imported_bt5.unrestrictedTraverse(before_triggered_bt5_id)() imported_bt5.unrestrictedTraverse(before_triggered_bt5_id)()
update_catalog_kw = {} if update_catalog is _MARKER and install_kw != {}:
if update_catalog is not _MARKER: update_catalog = imported_bt5.isCatalogUpdatable()
update_catalog_kw = dict(update_catalog=update_catalog)
if reinstall: if reinstall:
imported_bt5.install(force=True,**update_catalog_kw) imported_bt5.install(force=True,update_catalog=update_catalog)
else: else:
imported_bt5.install(object_to_update=install_kw, imported_bt5.install(object_to_update=install_kw,
**update_catalog_kw) update_catalog=update_catalog)
# Run After script list # Run After script list
for after_triggered_bt5_id in after_triggered_bt5_id_list: for after_triggered_bt5_id in after_triggered_bt5_id_list:
......
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