Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Removed WebDAV from dev, since it is kind of broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Winkler committed Aug 28, 2018
1 parent d7ab69f commit 01fed4f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 291 deletions.
3 changes: 0 additions & 3 deletions paperless.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,3 @@ PAPERLESS_EMAIL_SECRET=""
# 100 will be used.
#PAPERLESS_LIST_PER_PAGE=100


# Enable WebDAV support for Paperless. Default is false.
#PAPERLESS_ENABLE_WEBDAV="true"
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ django-extensions==2.0.7
django-filter==1.1.0
django-flat-responsive==2.0
django==2.0.7
djangodav==0.0.1b26
djangorestframework==3.8.2
docopt==0.6.2
execnet==1.5.0
Expand Down
275 changes: 0 additions & 275 deletions src/paperless/dav.py

This file was deleted.

6 changes: 1 addition & 5 deletions src/paperless/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@

"rest_framework",
"crispy_forms",
"django_filters",

"djangodav"
"django_filters"

]

Expand Down Expand Up @@ -280,5 +278,3 @@

# Specify the default date order (for autodetected dates)
DATE_ORDER = os.getenv("PAPERLESS_DATE_ORDER", "DMY")

ENABLE_WEBDAV = bool(os.getenv("PAPERLESS_ENABLE_WEBDAV", "NO").lower() in ("yes", "y", "1", "t", "true"))
7 changes: 0 additions & 7 deletions src/paperless/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
from django.views.generic import RedirectView
from rest_framework.routers import DefaultRouter

from djangodav.acls import FullAcl
from djangodav.locks import DummyLock

from documents.views import (
CorrespondentViewSet,
DocumentViewSet,
Expand All @@ -17,7 +14,6 @@
PushView,
TagViewSet
)
from paperless.dav import PaperlessDavResource, SecuredDavView
from reminders.views import ReminderViewSet

router = DefaultRouter()
Expand Down Expand Up @@ -56,9 +52,6 @@

] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

if settings.ENABLE_WEBDAV:
urlpatterns.append(url(r'^dav(?P<path>.*)$', SecuredDavView.as_view(resource_class=PaperlessDavResource, lock_class=DummyLock, acl_class=FullAcl)))

# Text in each page's <h1> (and above login form).
admin.site.site_header = 'Paperless'
# Text at the end of each page's <title>.
Expand Down

0 comments on commit 01fed4f

Please sign in to comment.