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

BusinessTemplate: also sort some path properties

template_keep_path_list, template_keep_workflow_path_list and
template_keep_last_workflow_history_only_path_list were not sorted
for no reason
parent a4a136d7
...@@ -3300,6 +3300,10 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -3300,6 +3300,10 @@ class TestBusinessTemplate(BusinessTemplateMixin):
portal_type='Business Template') portal_type='Business Template')
bt.edit(template_path_list=['b', 'c', 'a']) bt.edit(template_path_list=['b', 'c', 'a'])
self.assertEqual(bt.getTemplatePathList(), ['a', 'b', 'c']) self.assertEqual(bt.getTemplatePathList(), ['a', 'b', 'c'])
bt.edit(template_keep_workflow_path_list=['b', 'c', 'a'])
self.assertEqual(bt.getTemplateKeepWorkflowPathList(), ['a', 'b', 'c'])
bt.edit(template_keep_last_workflow_history_only_path_list=['b', 'c', 'a'])
self.assertEqual(bt.getTemplateKeepLastWorkflowHistoryOnlyPathList(), ['a', 'b', 'c'])
def test_01_checkNewSite(self): def test_01_checkNewSite(self):
"""Test Check New Site""" """Test Check New Site"""
......
...@@ -5592,6 +5592,9 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5592,6 +5592,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
'template_message_translation_list', 'template_message_translation_list',
'template_module_id_list', 'template_module_id_list',
'template_path_list', 'template_path_list',
'template_keep_path_list',
'template_keep_workflow_path_list',
'template_keep_last_workflow_history_only_path_list',
'template_portal_type_allowed_content_type_list', 'template_portal_type_allowed_content_type_list',
'template_portal_type_base_category_list', 'template_portal_type_base_category_list',
'template_portal_type_hidden_content_type_list', 'template_portal_type_hidden_content_type_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