URIs: URIs built with autocomplete now work too

This commit is contained in:
Celine Mercier
2019-03-15 10:52:27 +01:00
parent 478d19ab43
commit 24a63f8732

View File

@ -172,6 +172,13 @@ def open_uri(uri,
cdef dict qualifiers
cdef DMS default_dms
# Reformat URI if it was built with autocomplete
urib = urib.replace(b".obidms", b"")
urib = urib.replace(b".obiview", b"")
urib = urib.replace(b".obicol", b"")
urib = urib.replace(b"/VIEWS", b"")
urib = urib.replace(b"TAXONOMY", b"taxonomy")
config = getConfiguration()
urip = urlparse(urib)