[Erp5-report] r19303 - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 13 20:19:30 CET 2008


Author: jerome
Date: Wed Feb 13 20:19:30 2008
New Revision: 19303

URL: http://svn.erp5.org?rev=19303&view=rev
Log:
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.

Modified:
    erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py

Modified: erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py?rev=19303&r1=19302&r2=19303&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py Wed Feb 13 20:19:30 2008
@@ -304,9 +304,8 @@
 
       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 :




More information about the Erp5-report mailing list