From: Raphael Michel Date: Mon, 2 Jan 2017 20:09:47 +0000 (+0100) Subject: Postbank compatibility X-Git-Tag: v0.1.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e3a2a35d88cac314220cfdb146da038f0b13fed;p=thirdparty%2Fpython-fints.git Postbank compatibility --- diff --git a/README.md b/README.md index 7971656..497a456 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,13 @@ Limitations * Only PIN/TAN authentication is supported, no signature cards * Only a number of reading operations are currently supported +Banks tested: + +* GLS Bank eG +* Triodos Bank +* BBBank eG +* Postbank + Usage ----- diff --git a/fints/message.py b/fints/message.py index 4e84286..b574ed9 100644 --- a/fints/message.py +++ b/fints/message.py @@ -179,7 +179,7 @@ class FinTSResponse: return self._find_segments(name, True) def _find_segments(self, name, one=False): - found = [] + found = [] if not one else '' for s in self.segments: spl = s.split(':', 1) if spl[0] == name: diff --git a/fints/segments/auth.py b/fints/segments/auth.py index 6cc366e..445f265 100644 --- a/fints/segments/auth.py +++ b/fints/segments/auth.py @@ -34,7 +34,7 @@ class HKVVB(FinTS3Segment): PRODUCT_NAME = 'pyfints' PRODUCT_VERSION = '0.1' - def __init__(self, segmentno, lang=LANG_EN): + def __init__(self, segmentno, lang=LANG_DE): data = [ 0, 0, lang, self.PRODUCT_NAME, self.PRODUCT_VERSION ]