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,9 +566,12 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
"""Update conversion server (Oood) at default site preferences.
"""
conversion_dict = _getConversionServerDict()
preference = self.portal.portal_preferences.default_site_preference
preference.setPreferredOoodocServerAddress(conversion_dict['hostname'])
preference.setPreferredOoodocServerPortNumber(conversion_dict['port'])
preference = getattr(self.portal.portal_preferences,
'default_site_preference', None)
if preference is not None:
preference.setPreferredOoodocServerAddress(conversion_dict['hostname'])
preference.setPreferredOoodocServerPortNumber(conversion_dict['port'])
def _recreateCatalog(self, quiet=0):
"""Clear activities and catalog and recatalog everything.
......
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