Commit cedd201c authored by Rafael Monnerat's avatar Rafael Monnerat

Check if the preference is present into the portal.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33605 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 129274fd
...@@ -566,7 +566,10 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase): ...@@ -566,7 +566,10 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
"""Update conversion server (Oood) at default site preferences. """Update conversion server (Oood) at default site preferences.
""" """
conversion_dict = _getConversionServerDict() conversion_dict = _getConversionServerDict()
preference = self.portal.portal_preferences.default_site_preference
preference = getattr(self.portal.portal_preferences,
'default_site_preference', None)
if preference is not None:
preference.setPreferredOoodocServerAddress(conversion_dict['hostname']) preference.setPreferredOoodocServerAddress(conversion_dict['hostname'])
preference.setPreferredOoodocServerPortNumber(conversion_dict['port']) preference.setPreferredOoodocServerPortNumber(conversion_dict['port'])
......
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