Cython, URI: Fixed a bug when using an output URI with just a view name

to use the default DMS
This commit is contained in:
Celine Mercier
2018-11-02 19:04:27 +01:00
parent 35f3e7c30b
commit 8faabd3ebf

View File

@ -196,7 +196,11 @@ def open_uri(uri,
(((not input) and "outputformat" not in config["obi"]) or \ (((not input) and "outputformat" not in config["obi"]) or \
(input and "inputformat" not in config["obi"]))): # TODO maybe not best way (input and "inputformat" not in config["obi"]))): # TODO maybe not best way
if default_dms is not None and b"/" not in urip.path: # assuming view to open in default DMS (TODO discuss)
dms=(default_dms, urip.path)
else:
dms = open_dms(urip.path, create) dms = open_dms(urip.path, create)
if dms is None and default_dms is not None: if dms is None and default_dms is not None:
dms=(default_dms, urip.path) dms=(default_dms, urip.path)