Commit 73ff310c authored by Jérome Perrin's avatar Jérome Perrin

use oood timeout from preference


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40469 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 55b2fcd5
...@@ -97,7 +97,9 @@ class OOoServerProxy(ServerProxy): ...@@ -97,7 +97,9 @@ class OOoServerProxy(ServerProxy):
' conversion server host and port is not defined in preferences') ' conversion server host and port is not defined in preferences')
uri = 'http://%s:%d' % (address, port) uri = 'http://%s:%d' % (address, port)
transport = TimeoutTransport(timeout=OOO_SERVER_PROXY_TIMEOUT, scheme='http') timeout = preference_tool.getPreferredOoodocServerTimeout() \
or OOO_SERVER_PROXY_TIMEOUT
transport = TimeoutTransport(timeout=timeout, scheme='http')
ServerProxy.__init__(self, uri, allow_none=True, transport=transport) ServerProxy.__init__(self, uri, allow_none=True, transport=transport)
......
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