]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Postbank compatibility
authorRaphael Michel <mail@raphaelmichel.de>
Mon, 2 Jan 2017 20:09:47 +0000 (21:09 +0100)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 2 Jan 2017 20:09:47 +0000 (21:09 +0100)
README.md
fints/message.py
fints/segments/auth.py

index 7971656f9f51bf2d137fa268d28c8ee29f589930..497a4563f05cecb47cac7764ed8e49515e8ef235 100644 (file)
--- 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
 -----
 
index 4e842861641ebe5f8ededd0a3251c530030a26f6..b574ed9a308b59f4f96f93c5869b2a203f34b833 100644 (file)
@@ -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:
index 6cc366ea603f5af7fdb1a368c1dec2ad1b5be433..445f265c987f5c917223b8f64a961848c9a6c89f 100644 (file)
@@ -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
         ]