view gpp/messages/urls.py @ 306:6ca2c474d92f

Fixing #109; make forum links more prominent by underlining them by default.
author Brian Neal <bgneal@gmail.com>
date Sat, 15 Jan 2011 21:55:37 +0000
parents 0dd8989abef2
children b1c39788e511
line wrap: on
line source
"""urls for the Messages application"""
from django.conf.urls.defaults import *

urlpatterns = patterns('messages.views',
    url(r'^inbox/$', 'inbox', name='messages-inbox'),
    url(r'^outbox/$', 'outbox', name='messages-outbox'),
    url(r'^trash/$', 'trash', name='messages-trash'),
    url(r'^view/(\d+)/$', 'view', name='messages-view'),
    url(r'^reply/(\d+)/$', 'reply', name='messages-reply'),
    url(r'^compose/$', 'compose', name='messages-compose'),
    url(r'^compose/([\w.@+-]{1,30})/$', 'compose', name='messages-compose_to'),
    url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'),
    url(r'^delete/(\d+)/$', 'delete', name='messages-delete'),
    url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'),
    url(r'^undelete/(\d+)/$', 'undelete', name='messages-undelete'),
    url(r'^options/$', 'options', name='messages-options'),
)

urlpatterns += patterns('django.views.generic.simple',
    (r'^$', 'redirect_to', {'url': 'inbox/'}),
)