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@806: url(r'^delete/$', bgneal@806: 'messages.views.delete', bgneal@806: name='messages-delete'), bgneal@801: # url(r'^undelete/$', bgneal@801: # 'messages.views.undelete', bgneal@801: # name='messages-undelete'), bgneal@805: url(r'^view/(\d+)/$', bgneal@805: 'messages.views.view', bgneal@805: name='messages-view'), bgneal@801: # url(r'^report/(\d+)/$', bgneal@801: # 'messages.views.report', bgneal@801: # name='messages-report'), gremmie@1: )