Handle MI_Metadata from CSW record XML#210
Open
benjwadams wants to merge 1 commit intockan:masterfrom
Open
Conversation
Handles MI_Metadata elements returned from CSW XML records, rather than returning None and causing an error later. Raises an exception when neither MD_Metadata nor MI_Metadata are found. Also sets encoding argument to 'unicode' rather than unicode (type), so that Python 3 does not break.
Member
|
This looks good. I'll wait until the tests are fixed on master to double check is not breaking anything and I'll merge it. |
ccancellieri
added a commit
to ccancellieri/ckanext-spatial
that referenced
this pull request
Oct 22, 2021
ccancellieri
added a commit
to ccancellieri/ckanext-spatial
that referenced
this pull request
Oct 22, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handles MI_Metadata elements returned from CSW XML records, rather than
returning None and causing an error later. Raises an exception
when neither MD_Metadata nor MI_Metadata are found. Also sets encoding
argument to 'unicode' rather than unicode (type), so that Python 3 does
not break.