gremmie@1: """urls for the Messages application""" bgneal@574: from django.conf.urls import patterns, url bgneal@801: from django.views.generic.base import RedirectView bgneal@425: bgneal@801: urlpatterns = patterns('', bgneal@429: url(r'^$', bgneal@801: RedirectView.as_view(permanent=True, url='/messages/inbox/'), bgneal@429: name='messages-index'), bgneal@801: url(r'^inbox/$', bgneal@801: 'messages.views.inbox', bgneal@429: name='messages-inbox'), bgneal@804: url(r'^compose/$', bgneal@804: 'messages.views.compose', bgneal@804: name='messages-compose'), bgneal@801: url(r'^outbox/$', bgneal@801: 'messages.views.outbox', bgneal@429: name='messages-outbox'), bgneal@802: url(r'^trash/$', bgneal@802: 'messages.views.trash', bgneal@802: name='messages-trash'), bgneal@803: url(r'^options/$', bgneal@803: 'messages.views.options', bgneal@803: name='messages-options'), bgneal@818: url(r'^bulk/$', bgneal@818: 'messages.views.bulk', bgneal@818: name='messages-bulk'), bgneal@807: url(r'^undelete/$', bgneal@807: 'messages.views.undelete', bgneal@807: name='messages-undelete'), bgneal@805: url(r'^view/(\d+)/$', bgneal@805: 'messages.views.view', bgneal@805: name='messages-view'), bgneal@810: url(r'^report/(\d+)/$', bgneal@810: 'messages.views.report', bgneal@810: name='messages-report'), gremmie@1: )