Commit b8c5021f authored by Sebastien Robin's avatar Sebastien Robin

updated the folder where we do have business templates


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1980 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d3f54f9a
...@@ -8,7 +8,6 @@ __version__ = '0.3.0' ...@@ -8,7 +8,6 @@ __version__ = '0.3.0'
from Testing import ZopeTestCase from Testing import ZopeTestCase
from Testing.ZopeTestCase.PortalTestCase import PortalTestCase from Testing.ZopeTestCase.PortalTestCase import PortalTestCase
from Products.ERP5Type import product_path
from zLOG import LOG from zLOG import LOG
# Std Zope Products # Std Zope Products
...@@ -113,6 +112,7 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -113,6 +112,7 @@ class ERP5TypeTestCase(PortalTestCase):
cfg = App.config.getConfiguration() cfg = App.config.getConfiguration()
cfg.instancehome = os.environ['COPY_OF_INSTANCE_HOME'] cfg.instancehome = os.environ['COPY_OF_INSTANCE_HOME']
App.config.setConfiguration(cfg) App.config.setConfiguration(cfg)
INSTANCE_HOME = os.environ['INSTANCE_HOME']
template_list = self.getBusinessTemplateList() template_list = self.getBusinessTemplateList()
new_template_list = [] new_template_list = []
...@@ -123,7 +123,7 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -123,7 +123,7 @@ class ERP5TypeTestCase(PortalTestCase):
from urllib import urlretrieve from urllib import urlretrieve
file, headers = urlretrieve(template) file, headers = urlretrieve(template)
except IOError: except IOError:
template = product_path + '/tests/' + template template = INSTANCE_HOME + '/bt5/bt5/' + template
template = '%s.bt5' % template template = '%s.bt5' % template
new_template_list.append((template,id)) new_template_list.append((template,id))
LOG('new_template_list',0,template_list) LOG('new_template_list',0,template_list)
......
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