ceb7416a2642234cb2139dafb79c042f5800a086
[redakcja.git] / apps / wiki / urls.py
1 # -*- coding: utf-8
2 from django.conf.urls.defaults import *
3 from django.views.generic.simple import redirect_to
4 from django.conf import settings
5
6
7 #PART = ur"""[ ĄĆĘŁŃÓŚŻŹąćęłńóśżź0-9\w_.-]+"""
8
9 urlpatterns = patterns('wiki.views',
10     url(r'^$', redirect_to, {'url': 'catalogue/'}),
11
12     url(r'^catalogue/$', 'document_list', name='wiki_document_list'),
13     #url(r'^catalogue/([^/]+)/$', 'document_list'),
14     #url(r'^catalogue/([^/]+)/([^/]+)/$', 'document_list'),
15     #url(r'^catalogue/([^/]+)/([^/]+)/([^/]+)$', 'document_list'),
16
17     url(r'^(?P<slug>[^/]+)/$',
18         'editor', name="wiki_editor"),
19
20     url(r'^(?P<slug>[^/]+)/readonly$',
21         'editor_readonly', name="wiki_editor_readonly"),
22
23     url(r'^upload/$',
24         'upload', name='wiki_upload'),
25
26     url(r'^create/(?P<slug>[^/]+)',
27         'create_missing', name='wiki_create_missing'),
28
29     url(r'^(?P<directory>[^/]+)/gallery$',
30         'gallery', name="wiki_gallery"),
31
32     url(r'^(?P<slug>[^/]+)/history$',
33         'history', name="wiki_history"),
34
35     url(r'^(?P<slug>[^/]+)/rev$',
36         'revision', name="wiki_revision"),
37
38     url(r'^(?P<slug>[^/]+)/text$',
39         'text', name="wiki_text"),
40
41     url(r'^(?P<slug>[^/]+)/revert$',
42         'revert', name='wiki_revert'),
43
44     #url(r'^(?P<name>[^/]+)/publish$', 'publish', name="wiki_publish"),
45     #url(r'^(?P<name>[^/]+)/publish/(?P<version>\d+)$', 'publish', name="wiki_publish"),
46
47     url(r'^(?P<slug>[^/]+)/diff$', 'diff', name="wiki_diff"),
48     #url(r'^(?P<name>[^/]+)/tags$', 'add_tag', name="wiki_add_tag"),
49
50
51
52 )