From a70823ae7bf9b4919a143bdf2e02095cc83ebf1a Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 20 Mar 2014 12:14:47 +0100 Subject: [PATCH] [IMP] support stuzza's (Austrian ie UniCredit) camt namespace ISO:camt.053.001.02:APC:STUZZA:payments:003 http://www.stuzza.at/11453_DE.pdf, pp 193 (sorry, no English version available). Their XSD: http://www.stuzza.at/schemata/ISO.camt.053.001.02.austrian.003.xsd --- account_banking_camt/camt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_banking_camt/camt.py b/account_banking_camt/camt.py index 2ec31439f..29a44b9cf 100644 --- a/account_banking_camt/camt.py +++ b/account_banking_camt/camt.py @@ -253,12 +253,14 @@ CAMT Format parser """ Sanity check the document's namespace """ - if not self.ns.startswith('{urn:iso:std:iso:20022:tech:xsd:camt.'): + if not self.ns.startswith('{urn:iso:std:iso:20022:tech:xsd:camt.')\ + and not self.ns.startswith('ISO:camt.'): raise except_orm( "Error", "This does not seem to be a CAMT format bank statement.") - if not self.ns.startswith('{urn:iso:std:iso:20022:tech:xsd:camt.053.'): + if not self.ns.startswith('{urn:iso:std:iso:20022:tech:xsd:camt.053.')\ + and not self.ns.startswith('ISO:camt.053'): raise except_orm( "Error", "Only CAMT.053 is supported at the moment.")