From b41ff665bf888238f3ae1142a27866321d45df27 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Fri, 12 Nov 2010 12:05:22 +0000 Subject: [PATCH] Use constant. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40232 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5OOo/Document/OOoDocument.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5OOo/Document/OOoDocument.py b/product/ERP5OOo/Document/OOoDocument.py index 51fdbe257c..99cd746be6 100644 --- a/product/ERP5OOo/Document/OOoDocument.py +++ b/product/ERP5OOo/Document/OOoDocument.py @@ -61,6 +61,7 @@ dec=base64.decodestring _MARKER = [] EMBEDDED_FORMAT = '_embedded' +OOO_SERVER_PROXY_TIMEOUT = 360 class _ProtocolErrorCatcher(object): def __init__(self, orig_callable): @@ -93,7 +94,7 @@ class OOoServerProxy(ServerProxy): ' conversion server host and port is not defined in preferences') 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) -- 2.30.9