gremmie@1: """urls for the Messages application""" bgneal@574: from django.conf.urls import patterns, url bgneal@425: gremmie@1: urlpatterns = patterns('messages.views', bgneal@429: url(r'^$', bgneal@429: 'index', bgneal@429: name='messages-index'), bgneal@429: url(r'^(inbox|compose|outbox|trash|options)/$', bgneal@429: 'index', bgneal@429: name='messages-index_named'), bgneal@441: url(r'^options/$', bgneal@441: 'index', bgneal@441: kwargs={'tab': 'options'}, bgneal@441: name='messages-options_tab'), bgneal@441: url(r'^compose/([\w.@+-]{1,30})/$', bgneal@441: 'compose_to', bgneal@429: name='messages-compose_to'), bgneal@429: url(r'^inbox-tab/$', bgneal@429: 'inbox', bgneal@429: name='messages-inbox'), bgneal@429: url(r'^outbox-tab/$', bgneal@429: 'outbox', bgneal@429: name='messages-outbox'), bgneal@429: url(r'^trash-tab/$', bgneal@429: 'trash', bgneal@429: name='messages-trash'), bgneal@429: url(r'^message/$', bgneal@429: 'message', bgneal@429: name='messages-message'), bgneal@429: url(r'^options-tab/$', bgneal@429: 'options', bgneal@429: name='messages-options'), bgneal@429: url(r'^compose-tab/$', bgneal@429: 'compose', bgneal@429: name='messages-compose'), bgneal@429: url(r'^bulk/$', bgneal@429: 'bulk', bgneal@429: name='messages-bulk'), gremmie@1: )