Skip to content
Snippets Groups Projects
Verified Commit 895f3619 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

refactor: things missing from last commit

parent 1520f464
No related branches found
No related tags found
1 merge request!14Resolve "Show titles and format in repdav listing"
......@@ -28,7 +28,7 @@
1. Start the service.
```sh
python main.py
python src/main.py
```
For your convenience, a Docker Compose setup is delivered with this repository that configures the service accordingly. Build and start the stack.
......
https://gitlab.gwdg.de/dariah-de/textgridrep/textgrid-python-clients/-/archive/ef48104e96ce045bce3702116171442c9f02a0be/textgrid-python-clients-ef48104e96ce045bce3702116171442c9f02a0be.tar.gz
git+https://gitlab.gwdg.de/dariah-de/textgridrep/textgrid-python-clients.git@21-port-filename-for-textgrid-object-generation-from-link-rewriter
cheroot==8.5.2
sentry-sdk==1.4.3
WsgiDAV==4.0.1
......@@ -32,7 +32,7 @@ config = {
"host": os.getenv("host") or "localhost",
"port": int(os.getenv("port") or "8080"),
"provider_mapping": {
"/": {"class": "repdav.textgrid_dav_provider.TextgridResourceProvider"},
"/": {"class": "repdav.textgrid_named_dav_provider.TextgridNamedResourceProvider"},
},
"verbose": 4,
"http_authenticator": {
......
......@@ -264,6 +264,7 @@ class TextgridResource(DAVNonCollection):
return self._info[self.name]["format"]
def get_content(self):
_logger.debug("Called TextgridResource.get_content(self) with path:", self.path)
config = TextgridConfig()
crud = TextgridCRUD(config.crud)
return io.BytesIO(crud.read_data(self.path.split("/")[-1], self._sid).content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment