X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/48acd2e1b4ad0a64661091dff97122b2a53e4685..00906f2fc0432cede204c7870e6caecf427d7024:/librarian/__init__.py diff --git a/librarian/__init__.py b/librarian/__init__.py index 2e515dd..feb9974 100644 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -138,9 +138,9 @@ class DocProvider(object): """Should return a file-like object with a WL document XML.""" return self.by_slug_and_lang(slug) - def by_uri(self, uri): + def by_uri(self, uri, wluri=WLURI): """Should return a file-like object with a WL document XML.""" - wluri = WLURI(uri) + wluri = wluri(uri) return self.by_slug_and_lang(wluri.slug, wluri.language)