Commit 46f67fa3 authored by Aurel's avatar Aurel

add boolean parameter check_dependencies to preinstall


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12014 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7051445e
...@@ -3925,13 +3925,17 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -3925,13 +3925,17 @@ Business Template is a set of definitions, such as skins, portal types and categ
""" """
return self.portal_templates.update(self) return self.portal_templates.update(self)
def preinstall(self, **kw): def preinstall(self, check_dependencies=1, **kw):
""" """
Return the list of modified/new/removed object between a Business Template Return the list of modified/new/removed object between a Business Template
and the one installed if exists and the one installed if exists
""" """
self.checkDependencies() if check_dependencies:
# required because in multi installation, dependencies has already
# been checked before and it will failed here as dependencies can be
# installed at the same time
self.checkDependencies()
modified_object_list = {} modified_object_list = {}
bt_title = self.getTitle() bt_title = self.getTitle()
......
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