Commit 8e41481c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not hardcode conversion server configuration.

parent 8dab7785
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import _getConversionServerDict
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from StringIO import StringIO from StringIO import StringIO
...@@ -48,8 +49,9 @@ class TestFormPrintoutMixin(ERP5TypeTestCase): ...@@ -48,8 +49,9 @@ class TestFormPrintoutMixin(ERP5TypeTestCase):
def setSystemPreference(self): def setSystemPreference(self):
default_pref = self.portal.portal_preferences.default_site_preference default_pref = self.portal.portal_preferences.default_site_preference
default_pref.setPreferredOoodocServerAddress('127.0.0.1') conversion_dict = _getConversionServerDict()
default_pref.setPreferredOoodocServerPortNumber('8008') default_pref.setPreferredOoodocServerAddress(conversion_dict['hostname'])
default_pref.setPreferredOoodocServerPortNumber(conversion_dict['port'])
#default_pref.setPreferredConversionCacheFactory('document_cache_factory') #default_pref.setPreferredConversionCacheFactory('document_cache_factory')
if default_pref.getPreferenceState() != 'global': if default_pref.getPreferenceState() != 'global':
default_pref.enable() default_pref.enable()
......
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