From 01697e8d4c1017e3a66491338a7bc607021b95dd Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Thu, 21 Feb 2008 18:48:24 +0000 Subject: [PATCH] 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 --- product/ERP5Type/tests/ERP5TypeTestCase.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index 0f3bf26ef9..f991b30401 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -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)) -- 2.30.9