annotate gpp/messages/urls.py @ 428:77b3b01843b5

Gave the beta private messages a 'compose to' view. Tweaked the color of the tables to match the jquery ui theme.
author Brian Neal <bgneal@gmail.com>
date Sun, 01 May 2011 02:11:48 +0000
parents 76ba9478ebbd
children d0f0800eef0c
rev   line source
gremmie@1 1 """urls for the Messages application"""
gremmie@1 2 from django.conf.urls.defaults import *
bgneal@311 3 from django.views.generic import RedirectView
gremmie@1 4
bgneal@425 5
gremmie@1 6 urlpatterns = patterns('messages.views',
gremmie@1 7 url(r'^inbox/$', 'inbox', name='messages-inbox'),
gremmie@1 8 url(r'^outbox/$', 'outbox', name='messages-outbox'),
gremmie@1 9 url(r'^trash/$', 'trash', name='messages-trash'),
gremmie@1 10 url(r'^view/(\d+)/$', 'view', name='messages-view'),
gremmie@1 11 url(r'^reply/(\d+)/$', 'reply', name='messages-reply'),
gremmie@1 12 url(r'^compose/$', 'compose', name='messages-compose'),
bgneal@289 13 url(r'^compose/([\w.@+-]{1,30})/$', 'compose', name='messages-compose_to'),
gremmie@1 14 url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'),
gremmie@1 15 url(r'^delete/(\d+)/$', 'delete', name='messages-delete'),
gremmie@1 16 url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'),
gremmie@1 17 url(r'^undelete/(\d+)/$', 'undelete', name='messages-undelete'),
gremmie@1 18 url(r'^options/$', 'options', name='messages-options'),
gremmie@1 19 )
gremmie@1 20
bgneal@311 21 urlpatterns += patterns('',
bgneal@311 22 (r'^$', RedirectView.as_view(url='inbox/')),
gremmie@1 23 )
gremmie@1 24
bgneal@425 25 urlpatterns += patterns('messages.views2',
bgneal@425 26 url(r'^beta/$',
bgneal@425 27 'index',
bgneal@425 28 name='messages-beta_index'),
bgneal@425 29 url(r'^beta/(inbox|compose|outbox|trash|options)/$',
bgneal@425 30 'index',
bgneal@425 31 name='messages-beta_index_named'),
bgneal@428 32 url(r'^beta/compose/([\w.@+-]{1,30})/$',
bgneal@428 33 'compose_to',
bgneal@428 34 name='messages-beta_compose_to'),
bgneal@425 35 url(r'^beta/inbox-tab/$',
bgneal@425 36 'inbox',
bgneal@425 37 name='messages-beta_inbox'),
bgneal@425 38 url(r'^beta/outbox-tab/$',
bgneal@425 39 'outbox',
bgneal@425 40 name='messages-beta_outbox'),
bgneal@425 41 url(r'^beta/trash-tab/$',
bgneal@425 42 'trash',
bgneal@425 43 name='messages-beta_trash'),
bgneal@425 44 url(r'^beta/message/$',
bgneal@425 45 'message',
bgneal@425 46 name='messages-beta_message'),
bgneal@425 47 url(r'^beta/options-tab/$',
bgneal@425 48 'options',
bgneal@425 49 name='messages-beta_options'),
bgneal@425 50 url(r'^beta/compose-tab/$',
bgneal@425 51 'compose',
bgneal@425 52 name='messages-beta_compose'),
bgneal@425 53 url(r'^beta/compose-tab/([\w.@+-]{1,30})/$',
bgneal@425 54 'compose',
bgneal@425 55 name='messages-beta_compose_to'),
bgneal@425 56 url(r'^beta/bulk/$',
bgneal@425 57 'bulk',
bgneal@425 58 name='messages-beta_bulk'),
bgneal@425 59 )