URI decoding: fixed reading a taxonomy before any view

This commit is contained in:
mercierc
2021-05-31 16:57:20 +12:00
parent c884615522
commit da91ffc2c7

View File

@ -210,11 +210,12 @@ def open_uri(uri,
error = None
if urib != b"-" and \
if b'/taxonomy/' in urib or \
(urib != b"-" and \
(scheme==b"dms" or \
(scheme==b"" and \
(((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)
@ -464,7 +465,7 @@ def open_uri(uri,
if format is not None:
if seqtype==b"nuc":
objclass = Nuc_Seq # Nuc_Seq_Stored? TODO
if format==b"fasta" or format==b"silva":
if format==b"fasta" or format==b"silva" or format==b"rdp":
if input:
iseq = fastaNucIterator(file,
skip=skip,