Issues (TODO) moved to issuetracker
This commit is contained in:
parent
4c23eb77f3
commit
2164047878
@ -1,5 +1,3 @@
|
|||||||
# TODO: Implement access control for pages
|
|
||||||
|
|
||||||
def read_page(request, rel_path):
|
def read_page(request, rel_path):
|
||||||
return "private" not in rel_path or write_page(request, rel_path)
|
return "private" not in rel_path or write_page(request, rel_path)
|
||||||
|
|
||||||
@ -9,10 +7,10 @@ def write_page(request, rel_path):
|
|||||||
|
|
||||||
|
|
||||||
def read_attachment(request, rel_path):
|
def read_attachment(request, rel_path):
|
||||||
# TODO: /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
|
# /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def modify_attachment(request, rel_path):
|
def modify_attachment(request, rel_path):
|
||||||
# TODO: /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
|
# /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
|
||||||
return request.user.is_authenticated and request.user.username in ['root', 'dirk']
|
return request.user.is_authenticated and request.user.username in ['root', 'dirk']
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
# TODO: PRIO: Add wildcards for subpages filter
|
|
||||||
# TODO: Add whoosh and search
|
|
||||||
|
|
||||||
import fstools
|
import fstools
|
||||||
from pages import messages, url_page
|
from pages import messages, url_page
|
||||||
import mycreole
|
import mycreole
|
||||||
|
@ -21,9 +21,6 @@ except ImportError:
|
|||||||
ROOT_LOGGER_NAME = 'root'
|
ROOT_LOGGER_NAME = 'root'
|
||||||
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
||||||
|
|
||||||
# TODO: /!\ Deactivate self registration
|
|
||||||
# TODO: /!\ Remove config and add config_example with data from mm_tmux /!\
|
|
||||||
|
|
||||||
|
|
||||||
def root(request):
|
def root(request):
|
||||||
return HttpResponseRedirect(url_page(request, config.STARTPAGE))
|
return HttpResponseRedirect(url_page(request, config.STARTPAGE))
|
||||||
|
@ -24,14 +24,18 @@ import pages.views
|
|||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
#
|
#
|
||||||
|
# page
|
||||||
path('', pages.views.root, name='page-root'),
|
path('', pages.views.root, name='page-root'),
|
||||||
path('page/', pages.views.root, name='page-root'),
|
path('page/', pages.views.root, name='page-root'),
|
||||||
path('page/<path:rel_path>', pages.views.page, name='page-page'),
|
path('page/<path:rel_path>', pages.views.page, name='page-page'),
|
||||||
path('pageedit/<path:rel_path>/', pages.views.edit, name='page-edit'),
|
path('pageedit/<path:rel_path>/', pages.views.edit, name='page-edit'),
|
||||||
path('helpview/', pages.views.helpview, name='page-helpview'),
|
path('helpview/', pages.views.helpview, name='page-helpview'),
|
||||||
path('helpview/<str:page>', pages.views.helpview, name='page-helpview'),
|
path('helpview/<str:page>', pages.views.helpview, name='page-helpview'),
|
||||||
|
# theme
|
||||||
path('search/', pages.views.search, name='search'),
|
path('search/', pages.views.search, name='search'),
|
||||||
|
# mycreole
|
||||||
path('mycreole/', include('mycreole.urls')),
|
path('mycreole/', include('mycreole.urls')),
|
||||||
|
# users
|
||||||
path('users/', include('users.urls')),
|
path('users/', include('users.urls')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
2
users
2
users
@ -1 +1 @@
|
|||||||
Subproject commit 57852e6ec8867543fbcd9915ae5b6d092aafe339
|
Subproject commit 6b55e81816ace1583051c8c62298c8a7281e2fcb
|
Loading…
x
Reference in New Issue
Block a user