X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/48acd2e1b4ad0a64661091dff97122b2a53e4685..0718c9d23a5791aa51bc11bba6a011fe9a8a616d:/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)