summaryrefslogtreecommitdiff
path: root/addons/document/ftpserver/__init__.py
diff options
context:
space:
mode:
authorp_christeas <>2009-12-02 11:06:57 +0530
committerHarry (Open ERP) <hmo@tinyerp.com>2009-12-02 11:06:57 +0530
commitd5a68a7b692a6fa568c5fcebc580109afb5bb6d4 (patch)
tree249998cdec5a69756180eb39f722b0b45d4c46a2 /addons/document/ftpserver/__init__.py
parent8d0b4a741816302a30efa28442563afefea8b9cd (diff)
[IMP]document : get improvement of document from xrg-addons branch who made nice improvement in document
bzr revid: hmo@tinyerp.com-20091202053657-4oflezyhbolu3xvo
Diffstat (limited to 'addons/document/ftpserver/__init__.py')
-rw-r--r--addons/document/ftpserver/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/document/ftpserver/__init__.py b/addons/document/ftpserver/__init__.py
index 47615a442a6..3dc1f1b1202 100644
--- a/addons/document/ftpserver/__init__.py
+++ b/addons/document/ftpserver/__init__.py
@@ -28,7 +28,7 @@ import netsvc
from tools import config
from tools.misc import detect_ip_addr
HOST = ''
-PORT = int(config.get('ftp_server_port', 8021))
+PORT = 8021
PASSIVE_PORTS = None
pps = config.get('ftp_server_passive_ports', '').split(':')
if len(pps) == 2:
@@ -53,8 +53,7 @@ class ftp_server(threading.Thread):
ftpserver.logerror = lambda msg: self.log(netsvc.LOG_ERROR, msg)
HOST = config.get('ftp_server_address', detect_ip_addr())
- PORT = int(config.get('ftp_server_port', '8021'))
-
+ PORT = int(config.get('ftp_server_port', '8021'))
address = (HOST, PORT)
ftpd = ftpserver.FTPServer(address, ftpserver.FTPHandler)
ftpd.serve_forever()