2 from django.conf.urls import patterns, url
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<chunk_id>\d+)/$',
16 'history', name="wiki_history"),
18 url(r'^rev/(?P<chunk_id>\d+)/$',
19 'revision', name="wiki_revision"),
21 url(r'^text/(?P<chunk_id>\d+)/$',
22 'text', name="wiki_text"),
24 url(r'^revert/(?P<chunk_id>\d+)/$',
25 'revert', name='wiki_revert'),
27 url(r'^diff/(?P<chunk_id>\d+)/$', 'diff', name="wiki_diff"),
28 url(r'^pubmark/(?P<chunk_id>\d+)/$', 'pubmark', name="wiki_pubmark"),
30 url(r'^themes$', 'themes', name="themes"),