2 from django.conf.urls.defaults import *
5 urlpatterns = patterns('wiki.views',
6 url(r'^edit/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
7 'editor', name="wiki_editor"),
9 url(r'^readonly/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
10 'editor_readonly', name="wiki_editor_readonly"),
12 url(r'^gallery/(?P<directory>[^/]+)/$',
13 'gallery', name="wiki_gallery"),
15 url(r'^history/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
16 'history', name="wiki_history"),
18 url(r'^rev/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
19 'revision', name="wiki_revision"),
21 url(r'^text/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
22 'text', name="wiki_text"),
24 url(r'^revert/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
25 'revert', name='wiki_revert'),
27 url(r'^diff/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$', 'diff', name="wiki_diff"),
28 url(r'^pubmark/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$', 'pubmark', name="wiki_pubmark"),
30 url(r'^themes$', 'themes', name="themes"),