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: bgneal@425: 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: bgneal@425: urlpatterns += patterns('messages.views2', bgneal@425: url(r'^beta/$', bgneal@425: 'index', bgneal@425: name='messages-beta_index'), bgneal@425: url(r'^beta/(inbox|compose|outbox|trash|options)/$', bgneal@425: 'index', bgneal@425: name='messages-beta_index_named'), bgneal@428: url(r'^beta/compose/([\w.@+-]{1,30})/$', bgneal@428: 'compose_to', bgneal@428: name='messages-beta_compose_to'), bgneal@425: url(r'^beta/inbox-tab/$', bgneal@425: 'inbox', bgneal@425: name='messages-beta_inbox'), bgneal@425: url(r'^beta/outbox-tab/$', bgneal@425: 'outbox', bgneal@425: name='messages-beta_outbox'), bgneal@425: url(r'^beta/trash-tab/$', bgneal@425: 'trash', bgneal@425: name='messages-beta_trash'), bgneal@425: url(r'^beta/message/$', bgneal@425: 'message', bgneal@425: name='messages-beta_message'), bgneal@425: url(r'^beta/options-tab/$', bgneal@425: 'options', bgneal@425: name='messages-beta_options'), bgneal@425: url(r'^beta/compose-tab/$', bgneal@425: 'compose', bgneal@425: name='messages-beta_compose'), bgneal@425: url(r'^beta/compose-tab/([\w.@+-]{1,30})/$', bgneal@425: 'compose', bgneal@425: name='messages-beta_compose_to'), bgneal@425: url(r'^beta/bulk/$', bgneal@425: 'bulk', bgneal@425: name='messages-beta_bulk'), bgneal@425: )