Commit 144ccbf0 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Define reinstall separately.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3923 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f0372fb2
......@@ -1281,7 +1281,7 @@ class BusinessTemplate(XMLObject):
"""
return self.portal_templates.update(self)
def install(self, **kw):
def _install(self, **kw):
"""
For install based on paramaters provided in **kw
"""
......@@ -1305,8 +1305,14 @@ class BusinessTemplate(XMLObject):
# adds many new things into the portal.
clearCache()
install = WorkflowMethod(install)
reinstall = install
install = WorkflowMethod(_install)
def _reinstall(self, **kw):
"""Reinstall Business Template.
"""
return self._install(**kw)
reinstall = WorkflowMethod(_reinstall)
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