2 from django.conf.urls import patterns, url
5 urlpatterns = patterns(
7 url(r'^edit/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
8 'editor', name="wiki_editor"),
10 url(r'^readonly/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
11 'editor_readonly', name="wiki_editor_readonly"),
13 url(r'^gallery/(?P<directory>[^/]+)/$',
14 'gallery', name="wiki_gallery"),
16 url(r'^history/(?P<chunk_id>\d+)/$',
17 'history', name="wiki_history"),
19 url(r'^rev/(?P<chunk_id>\d+)/$',
20 'revision', name="wiki_revision"),
22 url(r'^text/(?P<chunk_id>\d+)/$',
23 'text', name="wiki_text"),
25 url(r'^revert/(?P<chunk_id>\d+)/$',
26 'revert', name='wiki_revert'),
28 url(r'^diff/(?P<chunk_id>\d+)/$', 'diff', name="wiki_diff"),
29 url(r'^pubmark/(?P<chunk_id>\d+)/$', 'pubmark', name="wiki_pubmark"),
31 url(r'^themes$', 'themes', name="themes"),