Commit 2e1c73b9 authored by Romain Bignon's avatar Romain Bignon

stable_backport: manual port for weboob.capabilities.bank and custom fixups

parent 9b399996
......@@ -43,6 +43,7 @@ def create_compat_dir(name):
MANUAL_PORTS = [
'weboob.capabilities.bank',
]
MANUAL_PORT_DIR = path.join(path.dirname(__file__), 'stable_backport_data')
......@@ -206,6 +207,10 @@ class StableBackport(object):
error.fixup()
system('git add %s' % compat_dirname)
with log('Custom fixups'):
replace_all('super(Attr, self).__init__(selector, default=default)', 'super(Attr, self).__init__(selector, attr, default=default)')
replace_all("super(Link, self).__init__(selector, 'href', default=default)", "super(Link, self).__init__(selector, default=default)")
system('git add -u')
......
import weboob.capabilities.bank as OLD
# can't import *, __all__ is incomplete...
for attr in dir(OLD):
globals()[attr] = getattr(OLD, attr)
__all__ = OLD.__all__
class AccountOwnerType(object):
"""
Specifies the usage of the account
"""
PRIVATE = u'PRIV'
"""private personal account"""
ORGANIZATION = u'ORGA'
"""professional account"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment