From c50baab462413e40b4a576b1567ee58b079c41b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 13 Feb 2008 19:19:30 +0000 Subject: [PATCH] use the last part from the path as business template ID, this makes it possible to use the URI of a business template in getBusinessTemplateList and make it installed from there. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19303 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/ERP5TypeTestCase.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index df6f6e3679..02811e7857 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -304,9 +304,8 @@ class ERP5TypeTestCase(PortalTestCase): template_list = self.getBusinessTemplateList() new_template_list = [] - #LOG('template_list',0,template_list) for template in template_list: - id = template + id = template.split('/')[-1] try : file, headers = urlretrieve(template) except IOError : -- 2.30.9