view gpp/messages/urls.py @ 408:7e0997b08b50

Fixes for #200; fix bug in deciding which forums have unread posts.
author Brian Neal <bgneal@gmail.com>
date Sat, 02 Apr 2011 00:12:40 +0000
parents b1c39788e511
children 76ba9478ebbd
line wrap: on
line source
"""urls for the Messages application"""
from django.conf.urls.defaults import *
from django.views.generic import RedirectView

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('',
    (r'^$', RedirectView.as_view(url='inbox/')),
)