backport fixes from creditmutuel
This commit is contained in:
parent
fe6d99c51a
commit
385dcfd0f6
1 changed files with 4 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
import string
|
||||||
|
|
||||||
from weboob.capabilities.bank import ICapBank, AccountNotFound, Recipient, Account
|
from weboob.capabilities.bank import ICapBank, AccountNotFound, Recipient, Account
|
||||||
from weboob.tools.backend import BaseBackend, BackendConfig
|
from weboob.tools.backend import BaseBackend, BackendConfig
|
||||||
|
|
@ -69,7 +70,7 @@ class CICBackend(BaseBackend, ICapBank):
|
||||||
yield tr
|
yield tr
|
||||||
|
|
||||||
def iter_transfer_recipients(self, ignored):
|
def iter_transfer_recipients(self, ignored):
|
||||||
for account in self.browser.get_accounts_list().itervalues():
|
for account in self.browser.get_accounts_list():
|
||||||
recipient = Recipient()
|
recipient = Recipient()
|
||||||
recipient.id = account.id
|
recipient.id = account.id
|
||||||
recipient.label = account.label
|
recipient.label = account.label
|
||||||
|
|
@ -79,6 +80,8 @@ class CICBackend(BaseBackend, ICapBank):
|
||||||
if isinstance(account, Account):
|
if isinstance(account, Account):
|
||||||
account = account.id
|
account = account.id
|
||||||
|
|
||||||
|
account = str(account).strip(string.letters)
|
||||||
|
to = str(to).strip(string.letters)
|
||||||
try:
|
try:
|
||||||
assert account.isdigit()
|
assert account.isdigit()
|
||||||
assert to.isdigit()
|
assert to.isdigit()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue