Although James could not validate the solution I suggested, I privately received the account number that he tried to validate and my suggestion does seem to do the trick.
Pieter, note that your modification to the Italian BBAN format in http://bazaar.launchpad.net/~pieterj/account-banking/5.0/revision/71#account_banking/sepa/iban.py is different from my suggestion and still gives the following error validating Italian IBANs:
account_banking/sepa/iban.py", line 131, in __extract__ result += value[i+4] IndexError: string index out of range
The reason for this is that the branch number is still 1 character too long.
Although James could not validate the solution I suggested, I privately received the account number that he tried to validate and my suggestion does seem to do the trick.
Pieter, note that your modification to the Italian BBAN format in http:// bazaar. launchpad. net/~pieterj/ account- banking/ 5.0/revision/ 71#account_ banking/ sepa/iban. py is different from my suggestion and still gives the following error validating Italian IBANs:
account_ banking/ sepa/iban. py", line 131, in __extract__
result += value[i+4]
IndexError: string index out of range
The reason for this is that the branch number is still 1 character too long.