Commit 31596611 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Sebastien Robin

Split on any whitespace.

Whitespaces shall be encoded with %digit
parent e9674c9e
......@@ -62,7 +62,7 @@ active_result = ActiveResult()\n
\n
portal.portal_templates.updateRepositoryBusinessTemplateList(portal.portal_templates.getRepositoryList())\n
\n
bt5_list = [x[1] for x in portal.portal_templates.resolveBusinessTemplateListDependency(bt5.split(\'\\n\'), newest_only=True)]\n
bt5_list = [x[1] for x in portal.portal_templates.resolveBusinessTemplateListDependency(bt5.split(), newest_only=True)]\n
bt5_list.extend([x.getTitle() for x in portal.portal_templates.getUpdatedRepositoryBusinessTemplateList()])\n
bt5_list = list(set(bt5_list))\n
\n
......
......@@ -59,7 +59,7 @@ if promise_repository is None:\n
return\n
\n
if promise_repository:\n
promise_repository_list = promise_repository.split(\'\\n\')\n
promise_repository_list = promise_repository.split()\n
promise_repository_list.sort()\n
else:\n
promise_repository_list = []\n
......
......@@ -56,7 +56,7 @@ bt5 = portal.getPromiseParameter(\'portal_templates\', \'expected_bt5\')\n
if bt5 is None:\n
return\n
\n
bt5_list = [x[1] for x in portal.portal_templates.resolveBusinessTemplateListDependency(bt5.split(\'\\n\'), newest_only=True)]\n
bt5_list = [x[1] for x in portal.portal_templates.resolveBusinessTemplateListDependency(bt5.split(), newest_only=True)]\n
bt5_list.extend([x.getTitle() for x in portal.portal_templates.getUpdatedRepositoryBusinessTemplateList()])\n
bt5_list = list(set(bt5_list))\n
\n
......
......@@ -53,7 +53,7 @@
<value> <string>portal = context.getPortalObject()\n
\n
repository = portal.getPromiseParameter(\'portal_templates\', \'repository\')\n
portal.portal_templates.updateRepositoryBusinessTemplateList(repository.split(\'\\n\'))\n
portal.portal_templates.updateRepositoryBusinessTemplateList(repository.split())\n
</string> </value>
</item>
<item>
......
8
\ No newline at end of file
9
\ No newline at end of file
......@@ -2197,7 +2197,7 @@ class ERP5Generator(PortalGenerator):
# Configure the bt5 repository
repository = p.getPromiseParameter('portal_templates', 'repository')
if repository is not None:
template_tool.updateRepositoryBusinessTemplateList(repository.split('\n'))
template_tool.updateRepositoryBusinessTemplateList(repository.split())
template_tool.installBusinessTemplateListFromRepository(
['erp5_promise'], activate=True, install_dependency=True)
p.portal_alarms.subscribe()
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