Commit f9e0ad89 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

update link in README

parent f5eb2d52
......@@ -2,7 +2,7 @@
Recoll WebUI
============
This (https://opensourceprojects.eu/p/recollwebui/) is an updated clone of
This (https://framagit.org/medoc92/recollwebui) is an updated clone of
Koniu's original version on GitHub (https://github.com/koniu/recoll-webui),
which has not been updated lately, and is now slightly obsolete.
......
......@@ -195,22 +195,22 @@ class ConfTree(ConfSimple):
raise TypeError("getbin: parameters must be binary not unicode")
#_debug("ConfTree::getbin: nm [%s] sk [%s]" % (nm, sk))
if sk == b'' or sk[0] != b'/'[0]:
# Note the test for root. There does not seem to be a direct
# way to do this in os.path
if not sk:
return ConfSimple.getbin(self, nm, sk)
if sk[len(sk)-1] == b'/'[0]:
sk = sk[:len(sk)-1]
# Try all sk ancestors as submaps (/a/b/c-> /a/b/c, /a/b, /a, b'')
while sk:
while True:
if sk in self.submaps:
return ConfSimple.getbin(self, nm, sk)
if sk + b'/' in self.submaps:
return ConfSimple.getbin(self, nm, sk+b'/')
i = sk.rfind(b'/')
if i == -1:
break
sk = sk[:i]
return ConfSimple.getbin(self, nm, sk + b'/')
nsk = os.path.dirname(sk)
if nsk == sk:
# sk was already root, we're done.
break;
sk = nsk
return ConfSimple.getbin(self, nm)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment