[FIX] document_ftp: Corrected login procedure to run the test successfully.

lp bug: https://launchpad.net/bugs/700682 fixed

bzr revid: uco@tinyerp.com-20110110072652-zjacy104ru6a11uv
This commit is contained in:
uco (OpenERP)
2011-01-10 12:56:52 +05:30
parent 2c15499b0d
commit 2fe5fdfc05
+1 -1
View File
@@ -37,7 +37,7 @@ def get_plain_ftp(timeout=10.0):
def get_ftp_login(cr, uid, ormobj):
ftp = get_plain_ftp()
user = ormobj.pool.get('res.users').read(cr, uid, uid)
ftp.login(user.get('login',''), user.get('login',''))
ftp.login(user.get('login',''), user.get('password',''))
ftp.cwd("/" + cr.dbname)
return ftp