Commit dd6f5041 authored by Rafael Monnerat's avatar Rafael Monnerat

Enable preference after configuration, fix tests and make it compatible with runUnitTest.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43705 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 783fc7d2
...@@ -83,6 +83,12 @@ if business_template is not None:\n ...@@ -83,6 +83,12 @@ if business_template is not None:\n
for module in module_list:\n for module in module_list:\n
module.updateLocalRolesOnSecurityGroups()\n module.updateLocalRolesOnSecurityGroups()\n
print "Updated Role Mappings for: %s(%s) " %(module.getTitle(), module.getPortalType())\n print "Updated Role Mappings for: %s(%s) " %(module.getTitle(), module.getPortalType())\n
\n
for preference_to_enable in business_template.getTemplatePreferenceList():\n
preference = getattr(portal_preferences, preference_to_enable, None)\n
if preference is not None:\n
if isTransitionPossible(preference, \'enable\'):\n
preference.enable()\n
\n \n
# update path items. FIXME: local roles should be exported by business template instead\n # update path items. FIXME: local roles should be exported by business template instead\n
for path in business_template.getTemplatePathList():\n for path in business_template.getTemplatePathList():\n
......
...@@ -197,8 +197,8 @@ system_prefs = dict(\n ...@@ -197,8 +197,8 @@ system_prefs = dict(\n
# oood\n # oood\n
# XXX-Luke: (critical) Use Conversion Server parameters related with\n # XXX-Luke: (critical) Use Conversion Server parameters related with\n
# Business Configartion\n # Business Configartion\n
preferred_ooodoc_server_address=\'oood\',\n preferred_ooodoc_server_address=\'localhost\',\n
preferred_ooodoc_server_port_number=8008,\n preferred_ooodoc_server_port_number=8011,\n
# dms\n # dms\n
# XXX-Luke: (proposal) Allow to define, maybe use some magic of\n # XXX-Luke: (proposal) Allow to define, maybe use some magic of\n
# representation\n # representation\n
......
569 570
\ No newline at end of file \ No newline at end of file
testLiveStandardConfigurationWorkflow testStandardConfigurationWorkflow
\ No newline at end of file \ No newline at end of file
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