← Back to team overview

credativ team mailing list archive

[Merge] lp:~credativ/account-banking/fix-read-method into lp:account-banking/5.0

 

Dmitrijs Ledkovs (credativ) has proposed merging lp:~credativ/account-banking/fix-read-method into lp:account-banking/5.0.

Requested reviews:
  Pieter J. Kersten (EduSense BV) (pieterj)

For more details, see:
https://code.launchpad.net/~credativ/account-banking/fix-read-method/+merge/80794
-- 
https://code.launchpad.net/~credativ/account-banking/fix-read-method/+merge/80794
Your team Credativ is subscribed to branch lp:~credativ/account-banking/fix-read-method.
=== modified file 'account_banking/account_banking.py'
--- account_banking/account_banking.py	2011-04-27 11:42:52 +0000
+++ account_banking/account_banking.py	2011-10-31 12:00:39 +0000
@@ -1118,6 +1118,8 @@
         Convert IBAN electronic format to IBAN display format
         '''
         records = self._founder.read(self, *args, **kwargs)
+	if not isinstance(records, list):
+            records = [records,]
         for record in records:
             if 'iban' in record and record['iban']:
                 record['iban'] = unicode(sepa.IBAN(record['iban']))


Follow ups