Commit af6328ad authored by Vincent Pelletier's avatar Vincent Pelletier

Move parameters from kw to explicit parameters.

Keep **kw parameter for backward compatibility.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19376 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0d7358b6
...@@ -4470,7 +4470,8 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4470,7 +4470,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
return modified_object_list return modified_object_list
def _install(self, force=1, object_to_update=None, **kw): def _install(self, force=1, object_to_update=None, update_translation=0,
update_catalog=0, **kw):
""" """
Install a new Business Template, if force, all will be upgraded or installed Install a new Business Template, if force, all will be upgraded or installed
otherwise depends of dict object_to_update otherwise depends of dict object_to_update
...@@ -4538,8 +4539,6 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4538,8 +4539,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
# update catalog if necessary # update catalog if necessary
if force and self.isCatalogUpdatable(): if force and self.isCatalogUpdatable():
update_catalog = 1 update_catalog = 1
else:
update_catalog = kw.get('update_catalog', 0)
if update_catalog: if update_catalog:
catalog = _getCatalogValue(self) catalog = _getCatalogValue(self)
if (catalog is None) or (not site.isIndexable): if (catalog is None) or (not site.isIndexable):
...@@ -4589,7 +4588,6 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4589,7 +4588,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
# Update translation table, in case we added new portal types or # Update translation table, in case we added new portal types or
# workflow states. # workflow states.
update_translation = kw.get('update_translation', 0)
if update_translation: if update_translation:
site.ERP5Site_updateTranslationTable() site.ERP5Site_updateTranslationTable()
......
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