gremmie@1: """urls for the Messages application""" bgneal@1028: from django.conf.urls import url bgneal@801: from django.views.generic.base import RedirectView bgneal@425: bgneal@1028: import messages.views bgneal@1028: bgneal@1028: bgneal@1028: urlpatterns = [ 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@1028: messages.views.inbox, bgneal@429: name='messages-inbox'), bgneal@804: url(r'^compose/$', bgneal@1028: messages.views.compose, bgneal@804: name='messages-compose'), bgneal@801: url(r'^outbox/$', bgneal@1028: messages.views.outbox, bgneal@429: name='messages-outbox'), bgneal@802: url(r'^trash/$', bgneal@1028: messages.views.trash, bgneal@802: name='messages-trash'), bgneal@803: url(r'^options/$', bgneal@1028: messages.views.options, bgneal@803: name='messages-options'), bgneal@818: url(r'^bulk/$', bgneal@1028: messages.views.bulk, bgneal@818: name='messages-bulk'), bgneal@807: url(r'^undelete/$', bgneal@1028: messages.views.undelete, bgneal@807: name='messages-undelete'), bgneal@805: url(r'^view/(\d+)/$', bgneal@1028: messages.views.view, bgneal@805: name='messages-view'), bgneal@810: url(r'^report/(\d+)/$', bgneal@1028: messages.views.report, bgneal@810: name='messages-report'), bgneal@1028: ]