Преглед на файлове

Issues (TODO) moved to issuetracker

master
Dirk Alders преди 3 месеца
родител
ревизия
2164047878
променени са 5 файла, в които са добавени 7 реда и са изтрити 11 реда
  1. 2
    4
      pages/access.py
  2. 0
    3
      pages/page.py
  3. 0
    3
      pages/views.py
  4. 4
    0
      piki/urls.py
  5. 1
    1
      users

+ 2
- 4
pages/access.py Целия файл

@@ -1,5 +1,3 @@
1
-# TODO: Implement access control for pages
2
-
3 1
 def read_page(request, rel_path):
4 2
     return "private" not in rel_path or write_page(request, rel_path)
5 3
 
@@ -9,10 +7,10 @@ def write_page(request, rel_path):
9 7
 
10 8
 
11 9
 def read_attachment(request, rel_path):
12
-    # TODO: /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
10
+    # /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
13 11
     return True
14 12
 
15 13
 
16 14
 def modify_attachment(request, rel_path):
17
-    # TODO: /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
15
+    # /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
18 16
     return request.user.is_authenticated and request.user.username in ['root', 'dirk']

+ 0
- 3
pages/page.py Целия файл

@@ -1,8 +1,5 @@
1 1
 from django.conf import settings
2 2
 
3
-# TODO: PRIO: Add wildcards for subpages filter
4
-# TODO: Add whoosh and search
5
-
6 3
 import fstools
7 4
 from pages import messages, url_page
8 5
 import mycreole

+ 0
- 3
pages/views.py Целия файл

@@ -21,9 +21,6 @@ except ImportError:
21 21
     ROOT_LOGGER_NAME = 'root'
22 22
 logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
23 23
 
24
-# TODO: /!\ Deactivate self registration
25
-# TODO: /!\ Remove config and add config_example with data from mm_tmux /!\
26
-
27 24
 
28 25
 def root(request):
29 26
     return HttpResponseRedirect(url_page(request, config.STARTPAGE))

+ 4
- 0
piki/urls.py Целия файл

@@ -24,14 +24,18 @@ import pages.views
24 24
 urlpatterns = [
25 25
     path('admin/', admin.site.urls),
26 26
     #
27
+    # page
27 28
     path('', pages.views.root, name='page-root'),
28 29
     path('page/', pages.views.root, name='page-root'),
29 30
     path('page/<path:rel_path>', pages.views.page, name='page-page'),
30 31
     path('pageedit/<path:rel_path>/', pages.views.edit, name='page-edit'),
31 32
     path('helpview/', pages.views.helpview, name='page-helpview'),
32 33
     path('helpview/<str:page>', pages.views.helpview, name='page-helpview'),
34
+    # theme
33 35
     path('search/', pages.views.search, name='search'),
36
+    # mycreole
34 37
     path('mycreole/', include('mycreole.urls')),
38
+    # users
35 39
     path('users/', include('users.urls')),
36 40
 ]
37 41
 

+ 1
- 1
users

@@ -1 +1 @@
1
-Subproject commit 57852e6ec8867543fbcd9915ae5b6d092aafe339
1
+Subproject commit 6b55e81816ace1583051c8c62298c8a7281e2fcb

Loading…
Отказ
Запис