Commit 3d6fb7c5 authored by Arnaud Fontaine's avatar Arnaud Fontaine

bt5: `b5list` and `title` files are text files.

parent da6274f6
...@@ -793,7 +793,7 @@ class TestTemplateTool(ERP5TypeTestCase): ...@@ -793,7 +793,7 @@ class TestTemplateTool(ERP5TypeTestCase):
bt_dir = "%s/%s/bt" % (repository, kw['title']) bt_dir = "%s/%s/bt" % (repository, kw['title'])
if not os.path.exists(bt_dir): if not os.path.exists(bt_dir):
os.makedirs(bt_dir) os.makedirs(bt_dir)
with open("%s/title" % bt_dir, "wb") as f: with open("%s/title" % bt_dir, "w") as f:
f.write(kw['title']) f.write(kw['title'])
template = xml.createElement('template') template = xml.createElement('template')
template.setAttribute('id', kw['title']) template.setAttribute('id', kw['title'])
...@@ -834,7 +834,7 @@ class TestTemplateTool(ERP5TypeTestCase): ...@@ -834,7 +834,7 @@ class TestTemplateTool(ERP5TypeTestCase):
createBtAndAddToRepository(repository, repo_xml, title='bt3') createBtAndAddToRepository(repository, repo_xml, title='bt3')
createBtAndAddToRepository(repository, repo_xml, title='bt4') createBtAndAddToRepository(repository, repo_xml, title='bt4')
createBtAndAddToRepository(repository, repo_xml, title='bt5') createBtAndAddToRepository(repository, repo_xml, title='bt5')
with open("%s/bt5list" % repository,"wb") as repo_xml_fd: with open("%s/bt5list" % repository, "w") as repo_xml_fd:
repo_xml.writexml(repo_xml_fd) repo_xml.writexml(repo_xml_fd)
repo_xml_fd.close() repo_xml_fd.close()
......
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