comparison gpp/messages/urls.py @ 429:d0f0800eef0c

Making the jquery tabbed version of the messages app the current version and removing the old. Also figured out how to dynamically update the base template's count of unread messages when messages are read.
author Brian Neal <bgneal@gmail.com>
date Tue, 03 May 2011 02:56:58 +0000
parents 77b3b01843b5
children 33d0c55e57a9
comparison
equal deleted inserted replaced
428:77b3b01843b5 429:d0f0800eef0c
1 """urls for the Messages application""" 1 """urls for the Messages application"""
2 from django.conf.urls.defaults import * 2 from django.conf.urls.defaults import *
3 from django.views.generic import RedirectView
4
5 3
6 urlpatterns = patterns('messages.views', 4 urlpatterns = patterns('messages.views',
7 url(r'^inbox/$', 'inbox', name='messages-inbox'), 5 url(r'^$',
8 url(r'^outbox/$', 'outbox', name='messages-outbox'), 6 'index',
9 url(r'^trash/$', 'trash', name='messages-trash'), 7 name='messages-index'),
10 url(r'^view/(\d+)/$', 'view', name='messages-view'), 8 url(r'^(inbox|compose|outbox|trash|options)/$',
11 url(r'^reply/(\d+)/$', 'reply', name='messages-reply'), 9 'index',
12 url(r'^compose/$', 'compose', name='messages-compose'), 10 name='messages-index_named'),
13 url(r'^compose/([\w.@+-]{1,30})/$', 'compose', name='messages-compose_to'), 11 url(r'^compose/([\w.@+-]{1,30})/$',
14 url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'), 12 'compose_to',
15 url(r'^delete/(\d+)/$', 'delete', name='messages-delete'), 13 name='messages-compose_to'),
16 url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'), 14 url(r'^inbox-tab/$',
17 url(r'^undelete/(\d+)/$', 'undelete', name='messages-undelete'), 15 'inbox',
18 url(r'^options/$', 'options', name='messages-options'), 16 name='messages-inbox'),
17 url(r'^outbox-tab/$',
18 'outbox',
19 name='messages-outbox'),
20 url(r'^trash-tab/$',
21 'trash',
22 name='messages-trash'),
23 url(r'^message/$',
24 'message',
25 name='messages-message'),
26 url(r'^options-tab/$',
27 'options',
28 name='messages-options'),
29 url(r'^compose-tab/$',
30 'compose',
31 name='messages-compose'),
32 url(r'^bulk/$',
33 'bulk',
34 name='messages-bulk'),
19 ) 35 )
20
21 urlpatterns += patterns('',
22 (r'^$', RedirectView.as_view(url='inbox/')),
23 )
24
25 urlpatterns += patterns('messages.views2',
26 url(r'^beta/$',
27 'index',
28 name='messages-beta_index'),
29 url(r'^beta/(inbox|compose|outbox|trash|options)/$',
30 'index',
31 name='messages-beta_index_named'),
32 url(r'^beta/compose/([\w.@+-]{1,30})/$',
33 'compose_to',
34 name='messages-beta_compose_to'),
35 url(r'^beta/inbox-tab/$',
36 'inbox',
37 name='messages-beta_inbox'),
38 url(r'^beta/outbox-tab/$',
39 'outbox',
40 name='messages-beta_outbox'),
41 url(r'^beta/trash-tab/$',
42 'trash',
43 name='messages-beta_trash'),
44 url(r'^beta/message/$',
45 'message',
46 name='messages-beta_message'),
47 url(r'^beta/options-tab/$',
48 'options',
49 name='messages-beta_options'),
50 url(r'^beta/compose-tab/$',
51 'compose',
52 name='messages-beta_compose'),
53 url(r'^beta/compose-tab/([\w.@+-]{1,30})/$',
54 'compose',
55 name='messages-beta_compose_to'),
56 url(r'^beta/bulk/$',
57 'bulk',
58 name='messages-beta_bulk'),
59 )