fix single letter id document urls

This commit is contained in:
j 2013-12-23 12:19:11 +00:00
parent 4eeb10e3ba
commit 07363d3ada

View file

@ -30,8 +30,8 @@ urlpatterns = patterns('',
(r'^file/(?P<oshash>.*)$', 'archive.views.lookup_file'),
(r'^api/?$', include(ox.django.api.urls)),
(r'^resetUI$', 'user.views.reset_ui'),
(r'^documents/(?P<id>[A-Z0-9].+)/(?P<size>\d*)p.jpg$', 'document.views.thumbnail'),
(r'^documents/(?P<id>[A-Z0-9].+)/(?P<name>.*?\..+)$', 'document.views.file'),
(r'^documents/(?P<id>[A-Z0-9]+)/(?P<size>\d*)p.jpg$', 'document.views.thumbnail'),
(r'^documents/(?P<id>[A-Z0-9]+)/(?P<name>.*?\..+)$', 'document.views.file'),
(r'^edit/(?P<id>.*?)/icon(?P<size>\d*).jpg$', 'edit.views.icon'),
(r'^list/(?P<id>.*?)/icon(?P<size>\d*).jpg$', 'itemlist.views.icon'),
(r'^text/(?P<id>.*?)/icon(?P<size>\d*).jpg$', 'text.views.icon'),
@ -61,8 +61,8 @@ urlpatterns += patterns('',
(r'^find$', 'urlalias.views.padma_find'),
)
urlpatterns += patterns('',
(r'^(?P<id>[A-Z0-9].+)/embed', 'app.views.embed'),
(r'^(?P<id>[A-Z0-9].+)$', 'item.views.item'),
(r'^(?P<id>[A-Z0-9]+)/embed', 'app.views.embed'),
(r'^(?P<id>[A-Z0-9]+)$', 'item.views.item'),
(r'^[a-z0-9].+$', 'app.views.index'),
(r'^$', 'app.views.index'),
(r'^.*$', 'app.views.index'),