Commit 1e1ea59c authored by Gabriel Monnerat's avatar Gabriel Monnerat

Don't set hardcode to configure the conversion server. The hostname and the...

Don't set hardcode to configure the conversion server. The hostname and the port must be got from System Preference enabled

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45072 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e831ef4d
...@@ -103,9 +103,7 @@ system_prefs = dict(\n ...@@ -103,9 +103,7 @@ system_prefs = dict(\n
\'-_.]+-[a-zA-Z0-9-_.]+)(|-(?P<version>[0-9a-zA-Z.]+))(|-(?P<language>[a\'\n \'-_.]+-[a-zA-Z0-9-_.]+)(|-(?P<version>[0-9a-zA-Z.]+))(|-(?P<language>[a\'\n
\'-z]{2})[^-]*)?\',\n \'-z]{2})[^-]*)?\',\n
preferred_synchronous_metadata_discovery = True,\n preferred_synchronous_metadata_discovery = True,\n
preferred_redirect_to_document = True,\n preferred_redirect_to_document = True)\n
preferred_ooodoc_server_address = "localhost",\n
preferred_ooodoc_server_port_number = 8011)\n
\n \n
configuration_save.addConfigurationItem(\'System Preference Configurator Item\',\n configuration_save.addConfigurationItem(\'System Preference Configurator Item\',\n
object_id = \'default_configurator_system_preference\',\n object_id = \'default_configurator_system_preference\',\n
......
...@@ -64,6 +64,7 @@ class TestUNGConfiguratorWorkflowMixin(ERP5TypeTestCase): ...@@ -64,6 +64,7 @@ class TestUNGConfiguratorWorkflowMixin(ERP5TypeTestCase):
'erp5_web_ung_role') 'erp5_web_ung_role')
DEFAULT_SEQUENCE_LIST = """ DEFAULT_SEQUENCE_LIST = """
stepSetupConversionServer
stepCreateBusinessConfiguration stepCreateBusinessConfiguration
stepSetUNGWorkflow stepSetUNGWorkflow
stepConfiguratorNext stepConfiguratorNext
...@@ -114,6 +115,13 @@ class TestUNGConfiguratorWorkflowMixin(ERP5TypeTestCase): ...@@ -114,6 +115,13 @@ class TestUNGConfiguratorWorkflowMixin(ERP5TypeTestCase):
self.portal.portal_templates.updateRepositoryBusinessTemplateList( self.portal.portal_templates.updateRepositoryBusinessTemplateList(
['http://www.erp5.org/dists/snapshot/bt5/']) ['http://www.erp5.org/dists/snapshot/bt5/'])
def stepSetupConversionServer(self, sequence=None, sequence_list=None, **kw):
""" Setup conversion server in portal_preference """
preference = self.portal.portal_preferences.newContent(portal_type="System Preference")
preference.setPreferredOoodocServerAddress("localhost")
preference.setPreferredOoodocServerPortNumber(8011)
preference.enable()
def stepCreateBusinessConfiguration(self, sequence=None, sequence_list=None, **kw): def stepCreateBusinessConfiguration(self, sequence=None, sequence_list=None, **kw):
""" Create one Business Configuration """ """ Create one Business Configuration """
module = self.portal.business_configuration_module module = self.portal.business_configuration_module
......
32 33
\ 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