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

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
-# TODO: Implement access control for pages
2
-
3
 def read_page(request, rel_path):
1
 def read_page(request, rel_path):
4
     return "private" not in rel_path or write_page(request, rel_path)
2
     return "private" not in rel_path or write_page(request, rel_path)
5
 
3
 
9
 
7
 
10
 
8
 
11
 def read_attachment(request, rel_path):
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
     return True
11
     return True
14
 
12
 
15
 
13
 
16
 def modify_attachment(request, rel_path):
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
     return request.user.is_authenticated and request.user.username in ['root', 'dirk']
16
     return request.user.is_authenticated and request.user.username in ['root', 'dirk']

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

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

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

21
     ROOT_LOGGER_NAME = 'root'
21
     ROOT_LOGGER_NAME = 'root'
22
 logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
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
 def root(request):
25
 def root(request):
29
     return HttpResponseRedirect(url_page(request, config.STARTPAGE))
26
     return HttpResponseRedirect(url_page(request, config.STARTPAGE))

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

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

+ 1
- 1
users

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

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