Fixed couple of source syntax issues
[booki.git] / lib / booki / editor / urls.py
blobe3439fc5b8a62d6592082a2500845fca28f44bf0
1 from django.conf.urls.defaults import *
3 urlpatterns = patterns('',
4 url(r'^$', 'booki.editor.views.view_project', name='view_project'),
5 url(r'^edit/', 'booki.editor.views.view_editor', name='view_editor'),
7 # utils
8 url(r'^(?P<edition>[\w\s\_\.\-]+)/_utils/thumbnail/(?P<attachment>.*)$', 'booki.editor.views.thumbnail_attachment', name='thumbnail_attachment'),
10 url(r'^(?P<edition>[\w\s\_\.\-]+)/export/{0,1}$', 'booki.editor.views.view_export', name='export_booki'),
11 url(r'^(?P<edition>[\w\s\_\.\-]+)/static/(?P<attachment>.*)$', 'booki.editor.views.view_attachment', name='view_attachment'),
14 # view book
15 url(r'^(?P<edition>[\w\s\_\.\-]+)/edit/$', 'booki.editor.views.edit_book', name='edit_book'),
16 url(r'^(?P<edition>[\w\s\_\.\-]+)/(?P<chapter>[\w\s\_\.\-]+)/$', 'booki.editor.views.view_chapter', name='view_chapter'),
17 url(r'^(?P<edition>[\w\s\_\.\-]+)/$', 'booki.editor.views.view_book', name='view_book')