Commit c50baab4 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 4592c8f4
...@@ -304,9 +304,8 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -304,9 +304,8 @@ class ERP5TypeTestCase(PortalTestCase):
template_list = self.getBusinessTemplateList() template_list = self.getBusinessTemplateList()
new_template_list = [] new_template_list = []
#LOG('template_list',0,template_list)
for template in template_list: for template in template_list:
id = template id = template.split('/')[-1]
try : try :
file, headers = urlretrieve(template) file, headers = urlretrieve(template)
except IOError : except IOError :
......
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