annotate gpp/forums/urls.py @ 181:500e5875a306

Implementing #61: adding a forum topic subscription feature.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Mar 2010 01:07:47 +0000
parents 0fa78ef80356
children fad7548b7f6e
rev   line source
bgneal@81 1 """
bgneal@81 2 URLs for the forums application.
bgneal@81 3 """
bgneal@81 4 from django.conf.urls.defaults import *
bgneal@81 5
bgneal@81 6 urlpatterns = patterns('forums.views',
bgneal@81 7 url(r'^$', 'index', name='forums-index'),
bgneal@83 8 url(r'^new-topic-success/(?P<tid>\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'),
bgneal@82 9 url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'),
bgneal@107 10 url(r'^delete-post/$', 'delete_post', name='forums-delete_post'),
bgneal@106 11 url(r'^edit/(?P<id>\d+)/$', 'edit_post', name='forums-edit_post'),
bgneal@98 12 url(r'^flag-post/$', 'flag_post', name='forums-flag_post'),
bgneal@85 13 url(r'^forum/(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'),
bgneal@113 14 url(r'^forum/(?P<slug>[\w\d-]+)/catchup/$', 'forum_catchup', name='forums-catchup'),
bgneal@85 15 url(r'^forum/(?P<slug>[\w\d-]+)/new-topic/$', 'new_topic', name='forums-new_topic'),
bgneal@111 16 url(r'^mod/forum/(?P<slug>[\w\d-]+)/$', 'mod_forum', name='forums-mod_forum'),
bgneal@110 17 url(r'^mod/topic/delete/(\d+)/$', 'mod_topic_delete', name='forums-mod_topic_delete'),
bgneal@109 18 url(r'^mod/topic/lock/(\d+)/$', 'mod_topic_lock', name='forums-mod_topic_lock'),
bgneal@110 19 url(r'^mod/topic/move/(\d+)/$', 'mod_topic_move', name='forums-mod_topic_move'),
bgneal@115 20 url(r'^mod/topic/split/(\d+)/$', 'mod_topic_split', name='forums-mod_topic_split'),
bgneal@109 21 url(r'^mod/topic/stick/(\d+)/$', 'mod_topic_stick', name='forums-mod_topic_stick'),
bgneal@169 22 url(r'^my-posts/$', 'my_posts', name='forums-my_posts'),
bgneal@91 23 url(r'^post/(\d+)/$', 'goto_post', name='forums-goto_post'),
bgneal@108 24 url(r'^post/new/(?P<topic_id>\d+)/$', 'new_post', name='forums-new_post'),
bgneal@172 25 url(r'^posts/(?P<username>[\w\d-]+)/$', 'posts_for_user', name='forums-posts_for_user'),
bgneal@89 26 url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'),
bgneal@168 27 url(r'^unanswered/$', 'unanswered_topics', name='forums-unanswered_topics'),
bgneal@167 28 url(r'^unread/$', 'unread_topics', name='forums-unread_topics'),
bgneal@81 29 )
bgneal@83 30
bgneal@181 31 urlpatterns += patterns('forums.subscriptions',
bgneal@181 32 url(r'^subscribe/(\d+)/$', 'subscribe_topic', name='forums-subscribe_topic'),
bgneal@181 33 url(r'^subscriptions/$', 'manage_subscriptions', name='forums-manage_subscriptions'),
bgneal@181 34 url(r'^subscriptions/(\d+)/$', 'subscription_status', name='forums-subscription_status'),
bgneal@181 35 url(r'^unsubscribe/(\d+)/$', 'unsubscribe_topic', name='forums-unsubscribe_topic'),
bgneal@181 36 )