Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Textgrid Repository WebDAV Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DARIAH-DE
TextGridRep
Textgrid Repository WebDAV Server
Commits
81c60487
Verified
Commit
81c60487
authored
3 years ago
by
Stefan Hynek
Browse files
Options
Downloads
Patches
Plain Diff
fix(textgrid_dav_provider): use tgclients for `TextgridAuth`
parent
49f8b4f6
No related branches found
No related tags found
1 merge request
!8
Resolve "integrate with tgclients lib"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/repdav/textgrid_dav_provider.py
+8
-3
8 additions, 3 deletions
src/repdav/textgrid_dav_provider.py
with
8 additions
and
3 deletions
src/repdav/textgrid_dav_provider.py
+
8
−
3
View file @
81c60487
...
...
@@ -5,6 +5,7 @@ import logging
import
threading
from
pprint
import
pformat
from
tgclients.auth
import
TextgridAuth
from
tgclients.config
import
TextgridConfig
from
tgclients.crud
import
TextgridCRUD
from
wsgidav.dav_provider
import
DAVCollection
,
DAVNonCollection
,
DAVProvider
...
...
@@ -12,7 +13,7 @@ from wsgidav.util import join_uri, pop_path
from
repdav.stream_tools
import
FileLikeQueue
from
.tgapi
import
TextgridAuth
,
TextgridSearch
from
.tgapi
import
TextgridSearch
_logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -32,7 +33,9 @@ class TextgridRoot(DAVCollection):
def
get_member_names
(
self
):
_logger
.
debug
(
"
Called TextgridRoot.get_member_names(self).
"
)
projects
=
tuple
(
TextgridAuth
().
assigned_projects
(
self
.
_sid
))
config
=
TextgridConfig
()
auth
=
TextgridAuth
(
config
)
projects
=
tuple
(
auth
.
list_assigned_projects
(
self
.
_sid
))
_logger
.
debug
(
"
MY PROJECTS: %s
"
,
projects
)
return
projects
...
...
@@ -152,7 +155,9 @@ class TextgridProject(DAVCollection):
class
TextgridAggregation
(
DAVCollection
):
def
__init__
(
self
,
path
,
environ
,
info
):
_logger
.
debug
(
"
Called TextgridAggregation.__init__(self, %s, environ, info).
"
,
path
)
_logger
.
debug
(
"
Called TextgridAggregation.__init__(self, %s, environ, info).
"
,
path
)
DAVCollection
.
__init__
(
self
,
path
,
environ
)
self
.
_sid
=
environ
[
"
wsgidav.auth.user_name
"
]
self
.
_info
=
info
...
...
This diff is collapsed.
Click to expand it.
Stefan Hynek
@hynek
mentioned in commit
eab3502a
·
3 years ago
mentioned in commit
eab3502a
mentioned in commit eab3502a1317d3865691e0d79c2f72e0ccd8e341
Toggle commit list
Stefan Hynek
@hynek
mentioned in commit
61644a05
·
3 years ago
mentioned in commit
61644a05
mentioned in commit 61644a0511ab3ae6a939d6d3d42107c87ed6072c
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment