Mercurial > public > sg101
view gpp/messages/urls.py @ 425:76ba9478ebbd
Initial beta-test commit of a revamped, jquery ui tab-based PM system. This is for #211.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 26 Apr 2011 00:16:35 +0000 |
parents | b1c39788e511 |
children | 77b3b01843b5 |
line wrap: on
line source
"""urls for the Messages application""" from django.conf.urls.defaults import * from django.views.generic import RedirectView urlpatterns = patterns('messages.views', url(r'^inbox/$', 'inbox', name='messages-inbox'), url(r'^outbox/$', 'outbox', name='messages-outbox'), url(r'^trash/$', 'trash', name='messages-trash'), url(r'^view/(\d+)/$', 'view', name='messages-view'), url(r'^reply/(\d+)/$', 'reply', name='messages-reply'), url(r'^compose/$', 'compose', name='messages-compose'), url(r'^compose/([\w.@+-]{1,30})/$', 'compose', name='messages-compose_to'), url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'), url(r'^delete/(\d+)/$', 'delete', name='messages-delete'), url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'), url(r'^undelete/(\d+)/$', 'undelete', name='messages-undelete'), url(r'^options/$', 'options', name='messages-options'), ) urlpatterns += patterns('', (r'^$', RedirectView.as_view(url='inbox/')), ) urlpatterns += patterns('messages.views2', url(r'^beta/$', 'index', name='messages-beta_index'), url(r'^beta/(inbox|compose|outbox|trash|options)/$', 'index', name='messages-beta_index_named'), url(r'^beta/inbox-tab/$', 'inbox', name='messages-beta_inbox'), url(r'^beta/outbox-tab/$', 'outbox', name='messages-beta_outbox'), url(r'^beta/trash-tab/$', 'trash', name='messages-beta_trash'), url(r'^beta/message/$', 'message', name='messages-beta_message'), url(r'^beta/options-tab/$', 'options', name='messages-beta_options'), url(r'^beta/compose-tab/$', 'compose', name='messages-beta_compose'), url(r'^beta/compose-tab/([\w.@+-]{1,30})/$', 'compose', name='messages-beta_compose_to'), url(r'^beta/bulk/$', 'bulk', name='messages-beta_bulk'), )