[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user