comparison gpp/messages/urls.py @ 289:0dd8989abef2

Fix regexes for usernames in various urls.py files to match valid Django usernames
author Brian Neal <bgneal@gmail.com>
date Thu, 23 Dec 2010 23:36:53 +0000
parents ab7830b067b3
children b1c39788e511
comparison
equal deleted inserted replaced
288:4ba879ccdc62 289:0dd8989abef2
6 url(r'^outbox/$', 'outbox', name='messages-outbox'), 6 url(r'^outbox/$', 'outbox', name='messages-outbox'),
7 url(r'^trash/$', 'trash', name='messages-trash'), 7 url(r'^trash/$', 'trash', name='messages-trash'),
8 url(r'^view/(\d+)/$', 'view', name='messages-view'), 8 url(r'^view/(\d+)/$', 'view', name='messages-view'),
9 url(r'^reply/(\d+)/$', 'reply', name='messages-reply'), 9 url(r'^reply/(\d+)/$', 'reply', name='messages-reply'),
10 url(r'^compose/$', 'compose', name='messages-compose'), 10 url(r'^compose/$', 'compose', name='messages-compose'),
11 url(r'^compose/(\w+)/$', 'compose', name='messages-compose_to'), 11 url(r'^compose/([\w.@+-]{1,30})/$', 'compose', name='messages-compose_to'),
12 url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'), 12 url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'),
13 url(r'^delete/(\d+)/$', 'delete', name='messages-delete'), 13 url(r'^delete/(\d+)/$', 'delete', name='messages-delete'),
14 url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'), 14 url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'),
15 url(r'^undelete/(\d+)/$', 'undelete', name='messages-undelete'), 15 url(r'^undelete/(\d+)/$', 'undelete', name='messages-undelete'),
16 url(r'^options/$', 'options', name='messages-options'), 16 url(r'^options/$', 'options', name='messages-options'),
18 18
19 urlpatterns += patterns('django.views.generic.simple', 19 urlpatterns += patterns('django.views.generic.simple',
20 (r'^$', 'redirect_to', {'url': 'inbox/'}), 20 (r'^$', 'redirect_to', {'url': 'inbox/'}),
21 ) 21 )
22 22
23
24 # vim: ts=4 sw=4