[FIX] document_ftp: use the login as a password in the tests.
This is done instead of querying the password and using it because when base_crypt is installed, the password will be hashed. bzr revid: vmt@openerp.com-20101229161322-at8c3zh3mnzchj94
This commit is contained in:
parent
469b5a8c6e
commit
d98ffbe1b8
|
@ -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('password',''))
|
||||
ftp.login(user.get('login',''), user.get('login',''))
|
||||
ftp.cwd("/" + cr.dbname)
|
||||
return ftp
|
||||
|
||||
|
@ -62,4 +62,4 @@ def get_ftp_fulldata(ftp, fname, limit=8192):
|
|||
ftp.retrbinary('RETR %s' % fname, partial(ffp,data))
|
||||
return ''.join(data)
|
||||
|
||||
#eof
|
||||
#eof
|
||||
|
|
Loading…
Reference in New Issue