Commit 01697e8d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

rename a variable name that is already used in the same scope.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19460 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e6f949d
......@@ -649,20 +649,20 @@ def setupERP5Site( business_template_list=(),
# Disable reindexing before adding templates
# VERY IMPORTANT: Add some business templates
for url, title in business_template_list:
for url, bt_title in business_template_list:
start = time.time()
get_install_kw = False
if title in [x.getTitle() for x in portal.portal_templates.getInstalledBusinessTemplateList()]:
if bt_title in [x.getTitle() for x in portal.portal_templates.getInstalledBusinessTemplateList()]:
if update_business_templates:
if not quiet:
ZopeTestCase._print('Updating %s business template ... ' % title)
ZopeTestCase._print('Updating %s business template ... ' % bt_title)
if BusinessTemplate_getModifiedObject is not None:
get_install_kw = True
else:
continue
else:
if not quiet:
ZopeTestCase._print('Adding %s business template ... ' % title)
ZopeTestCase._print('Adding %s business template ... ' % bt_title)
bt = portal.portal_templates.download(url)
if not quiet:
ZopeTestCase._print('(downloaded in %.3fs) ' % (time.time() - start))
......
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