comparison gpp/messages/urls.py @ 425:76ba9478ebbd

Initial beta-test commit of a revamped, jquery ui tab-based PM system. This is for #211.
author Brian Neal <bgneal@gmail.com>
date Tue, 26 Apr 2011 00:16:35 +0000
parents b1c39788e511
children 77b3b01843b5
comparison
equal deleted inserted replaced
424:8df6e9edac22 425:76ba9478ebbd
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 3 from django.views.generic import RedirectView
4
4 5
5 urlpatterns = patterns('messages.views', 6 urlpatterns = patterns('messages.views',
6 url(r'^inbox/$', 'inbox', name='messages-inbox'), 7 url(r'^inbox/$', 'inbox', name='messages-inbox'),
7 url(r'^outbox/$', 'outbox', name='messages-outbox'), 8 url(r'^outbox/$', 'outbox', name='messages-outbox'),
8 url(r'^trash/$', 'trash', name='messages-trash'), 9 url(r'^trash/$', 'trash', name='messages-trash'),
19 20
20 urlpatterns += patterns('', 21 urlpatterns += patterns('',
21 (r'^$', RedirectView.as_view(url='inbox/')), 22 (r'^$', RedirectView.as_view(url='inbox/')),
22 ) 23 )
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/inbox-tab/$',
33 'inbox',
34 name='messages-beta_inbox'),
35 url(r'^beta/outbox-tab/$',
36 'outbox',
37 name='messages-beta_outbox'),
38 url(r'^beta/trash-tab/$',
39 'trash',
40 name='messages-beta_trash'),
41 url(r'^beta/message/$',
42 'message',
43 name='messages-beta_message'),
44 url(r'^beta/options-tab/$',
45 'options',
46 name='messages-beta_options'),
47 url(r'^beta/compose-tab/$',
48 'compose',
49 name='messages-beta_compose'),
50 url(r'^beta/compose-tab/([\w.@+-]{1,30})/$',
51 'compose',
52 name='messages-beta_compose_to'),
53 url(r'^beta/bulk/$',
54 'bulk',
55 name='messages-beta_bulk'),
56 )