annotate gpp/messages/urls.py @ 149:ab7830b067b3

Implement ticket #40. Added a simple way to search for usernames and then view their profile. Moved this ajax username search feature out of the messages app and into core.
author Brian Neal <bgneal@gmail.com>
date Mon, 14 Dec 2009 05:07:28 +0000
parents dbd703f7d63a
children 0dd8989abef2
rev   line source
gremmie@1 1 """urls for the Messages application"""
gremmie@1 2 from django.conf.urls.defaults import *
gremmie@1 3
gremmie@1 4 urlpatterns = patterns('messages.views',
gremmie@1 5 url(r'^inbox/$', 'inbox', name='messages-inbox'),
gremmie@1 6 url(r'^outbox/$', 'outbox', name='messages-outbox'),
gremmie@1 7 url(r'^trash/$', 'trash', name='messages-trash'),
gremmie@1 8 url(r'^view/(\d+)/$', 'view', name='messages-view'),
gremmie@1 9 url(r'^reply/(\d+)/$', 'reply', name='messages-reply'),
gremmie@1 10 url(r'^compose/$', 'compose', name='messages-compose'),
gremmie@1 11 url(r'^compose/(\w+)/$', 'compose', name='messages-compose_to'),
gremmie@1 12 url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'),
gremmie@1 13 url(r'^delete/(\d+)/$', 'delete', name='messages-delete'),
gremmie@1 14 url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'),
gremmie@1 15 url(r'^undelete/(\d+)/$', 'undelete', name='messages-undelete'),
gremmie@1 16 url(r'^options/$', 'options', name='messages-options'),
gremmie@1 17 )
gremmie@1 18
gremmie@1 19 urlpatterns += patterns('django.views.generic.simple',
gremmie@1 20 (r'^$', 'redirect_to', {'url': 'inbox/'}),
gremmie@1 21 )
gremmie@1 22
gremmie@1 23
gremmie@1 24 # vim: ts=4 sw=4