gremmie@1: """urls for the Messages application""" gremmie@1: from django.conf.urls.defaults import * bgneal@311: from django.views.generic import RedirectView gremmie@1: gremmie@1: urlpatterns = patterns('messages.views', gremmie@1: url(r'^inbox/$', 'inbox', name='messages-inbox'), gremmie@1: url(r'^outbox/$', 'outbox', name='messages-outbox'), gremmie@1: url(r'^trash/$', 'trash', name='messages-trash'), gremmie@1: url(r'^view/(\d+)/$', 'view', name='messages-view'), gremmie@1: url(r'^reply/(\d+)/$', 'reply', name='messages-reply'), gremmie@1: url(r'^compose/$', 'compose', name='messages-compose'), bgneal@289: url(r'^compose/([\w.@+-]{1,30})/$', 'compose', name='messages-compose_to'), gremmie@1: url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'), gremmie@1: url(r'^delete/(\d+)/$', 'delete', name='messages-delete'), gremmie@1: url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'), gremmie@1: url(r'^undelete/(\d+)/$', 'undelete', name='messages-undelete'), gremmie@1: url(r'^options/$', 'options', name='messages-options'), gremmie@1: ) gremmie@1: bgneal@311: urlpatterns += patterns('', bgneal@311: (r'^$', RedirectView.as_view(url='inbox/')), gremmie@1: ) gremmie@1: