~akretion-team/banking-addons/70-fully-handle-payment-types

« back to all changes in this revision

Viewing changes to account_banking_iban_lookup/online.py

  • Committer: Raphaël Valyi
  • Date: 2014-03-21 19:12:47 UTC
  • mfrom: (225.1.11 7.0)
  • Revision ID: rvalyi@gmail.com-20140321191247-zqytcf091nlbxboo
[MERGE] merged HEAD into current feature branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- encoding: utf-8 -*-
 
1
# -*- coding: utf-8 -*-
2
2
##############################################################################
3
3
#
4
4
#  Copyright (C) 2009 EduSense BV (<http://www.edusense.nl>).
26
26
import urllib, urllib2
27
27
from BeautifulSoup import BeautifulSoup
28
28
from openerp.addons.account_banking.sepa import postalcode
29
 
from openerp.addons.account_banking.sepa.urlagent import URLAgent, SoupForm
 
29
from openerp.addons.account_banking_iban_lookup.urlagent import URLAgent, SoupForm
30
30
from openerp.addons.account_banking.sepa.iban import IBAN
31
31
from openerp.addons.account_banking.struct import struct
32
32
 
157
157
    '''
158
158
    Consult the online database for this country to obtain its
159
159
    corresponding IBAN/BIC number and other info available.
160
 
    Raise NotImplemented when no information service could be found.
161
160
    Returns None when a service was found but something went wrong.
162
 
    Returns a dictionary (struct) of information when found.
 
161
    Returns a dictionary (struct) of information when found, or
 
162
    False when not implemented.
163
163
    '''
164
164
    if iso in _account_info:
165
165
        return _account_info[iso](bank_acc)
166
 
    raise NotImplementedError()
 
166
    return False
167
167
 
168
168
bic_re = re.compile("[^']+'([^']*)'.*")
169
169
SWIFTlink = 'http://www.swift.com/bsl/freequery.do'