mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-22 20:22:03 +00:00
encodestring -> encodebytes
This commit is contained in:
parent
364d8d256d
commit
418a6f86b8
@ -350,7 +350,7 @@ class EbicsUserID(models.Model):
|
|||||||
with open(full_tmp_fn, 'rb') as f:
|
with open(full_tmp_fn, 'rb') as f:
|
||||||
letter = f.read()
|
letter = f.read()
|
||||||
self.write({
|
self.write({
|
||||||
'ebics_ini_letter': base64.encodestring(letter),
|
'ebics_ini_letter': base64.encodebytes(letter),
|
||||||
'ebics_ini_letter_fn': fn,
|
'ebics_ini_letter_fn': fn,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -488,7 +488,7 @@ class EbicsXfer(models.TransientModel):
|
|||||||
"\nPlease check this file and rename in case there is "
|
"\nPlease check this file and rename in case there is "
|
||||||
"no risk on duplicate transactions.")
|
"no risk on duplicate transactions.")
|
||||||
% fn)
|
% fn)
|
||||||
data = base64.encodestring(data)
|
data = base64.encodebytes(data)
|
||||||
ef_vals = {
|
ef_vals = {
|
||||||
'name': fn,
|
'name': fn,
|
||||||
'data': data,
|
'data': data,
|
||||||
|
Loading…
Reference in New Issue
Block a user