Commit b41ff665 authored by Ivan Tyagov's avatar Ivan Tyagov

Use constant.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40232 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent be77dc04
...@@ -61,6 +61,7 @@ dec=base64.decodestring ...@@ -61,6 +61,7 @@ dec=base64.decodestring
_MARKER = [] _MARKER = []
EMBEDDED_FORMAT = '_embedded' EMBEDDED_FORMAT = '_embedded'
OOO_SERVER_PROXY_TIMEOUT = 360
class _ProtocolErrorCatcher(object): class _ProtocolErrorCatcher(object):
def __init__(self, orig_callable): def __init__(self, orig_callable):
...@@ -93,7 +94,7 @@ class OOoServerProxy(ServerProxy): ...@@ -93,7 +94,7 @@ 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=360, scheme='http') transport = TimeoutTransport(timeout=OOO_SERVER_PROXY_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