Skip to content

Commit

Permalink
Merge pull request #64 from Gustry/fix-xml
Browse files Browse the repository at this point in the history
disable XML for InaSAFE 3.0 and 3.1
  • Loading branch information
Gustry committed Jun 19, 2015
2 parents 3bf96e2 + 2b18d0c commit 3e39422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions reporter/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ def metadata_files(version, lang, feature, output_prefix):
xml_file = metadata_file('xml', version, lang, feature)
keyword_file = metadata_file('keywords', version, lang, feature)
if version is None:
# no inasafe_version supplied, provide legacy keywords and XML.
# no inasafe_version supplied, provide legacy keywords.
files = {
'%s.keywords' % output_prefix: keyword_file,
'%s.xml' % output_prefix: xml_file
# Problem with InaSAFE 3.0 and 3.1.
# '%s.xml' % output_prefix: xml_file
}
elif version < 3.2:
# keywords only.
Expand Down
1 change: 0 additions & 1 deletion reporter/test/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def test_metadata_files(self):
# noinspection PyTypeChecker
metadata = metadata_files(None, 'fr', 'roads', 'test')
expected_metadata = {
'test.xml': '-3.2-en.xml',
'test.keywords': '-fr.keywords'
}
self.assertDictEqual(expected_metadata, metadata)
Expand Down

0 comments on commit 3e39422

Please sign in to comment.