Commit d75c84d7 authored by Rafael Monnerat's avatar Rafael Monnerat

Permit the configuration decides which bt5 should trigger the catalog update.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44430 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37fce248
...@@ -68,8 +68,10 @@ class StandardBT5ConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -68,8 +68,10 @@ class StandardBT5ConfiguratorItem(ConfiguratorItemMixin, XMLObject):
filename_bt5_id = '%s.bt5' % bt5_id filename_bt5_id = '%s.bt5' % bt5_id
if business_configuration.isStandardBT5(filename_bt5_id): if business_configuration.isStandardBT5(filename_bt5_id):
if bt5_id not in installed_bt_list: if bt5_id not in installed_bt_list:
update_catalog = self.getUpdateCatalog(0)
bt_url = template_tool.getBusinessTemplateUrl(None, filename_bt5_id) bt_url = template_tool.getBusinessTemplateUrl(None, filename_bt5_id)
template_tool.updateBusinessTemplateFromUrl(bt_url) template_tool.updateBusinessTemplateFromUrl(bt_url,
update_catalog=update_catalog)
LOG("StandardBT5ConfiguratorItem", INFO, LOG("StandardBT5ConfiguratorItem", INFO,
"Install %s for %s" % (bt_url, self.getRelativeUrl())) "Install %s for %s" % (bt_url, self.getRelativeUrl()))
else: else:
......
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