allow camt054 to be parsed

IMP README
This commit is contained in:
david wulliamoz
2017-04-18 17:24:46 +02:00
committed by eLBati
parent 98adf38f7f
commit a8fb175913
3 changed files with 5 additions and 3 deletions

View File

@@ -210,10 +210,12 @@ class CamtParser(models.AbstractModel):
)
if not re_camt.search(ns):
raise ValueError('no camt: ' + ns)
# Check wether version 052 or 053:
# Check wether version 052 ,053 or 054:
re_camt_version = re.compile(
r'(^urn:iso:std:iso:20022:tech:xsd:camt.054.'
r'(^urn:iso:std:iso:20022:tech:xsd:camt.053.'
r'|^urn:iso:std:iso:20022:tech:xsd:camt.052.'
r'|^ISO:camt.054.'
r'|^ISO:camt.053.'
r'|^ISO:camt.052.)'
)