Commit d37ed66a authored by Ivan Tyagov's avatar Ivan Tyagov

Properly fail if DMS settings not set in preferences.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14423 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f9204e12
......@@ -156,9 +156,9 @@ class OOoDocument(File, ConversionCacheMixin):
preference_tool = getToolByName(self, 'portal_preferences')
address = preference_tool.getPreferredOoodocServerAddress()
port = preference_tool.getPreferredOoodocServerPortNumber()
if not address or not port:
raise ConversionError('Can not proceed with conversion: '
'conversion server host and port is not defined in preferences')
if address in ('', None) or port in ('', None) :
raise ConversionError('''[DMS] Can not proceed with conversion:
conversion server host and port is not defined in preferences''')
return address, port
def _mkProxy(self):
......
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