Commit d1fa3a43 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Define reinstall. Currently, this is identical to install.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3512 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 503441fc
......@@ -1289,6 +1289,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
For install based on paramaters provided in **kw
"""
installed_bt = self.portal_templates.getInstalledBusinessTemplate(self.getTitle())
LOG('Business Template install', 0, 'self = %r, installed_bt = %r' % (self, installed_bt))
if installed_bt is not None:
installed_bt.trash(self)
installed_bt.replace(self)
......@@ -1340,6 +1341,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
clearCache()
install = WorkflowMethod(install)
reinstall = install
def trash(self, new_bt, **kw):
"""
......
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