annotate gpp/forums/urls.py @ 109:07be3e39e639

Forums: implemented topic level moderator controls.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Sep 2009 18:03:57 +0000
parents 80ab249d1adc
children c329bfaed4a7
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@85 14 url(r'^forum/(?P<slug>[\w\d-]+)/new-topic/$', 'new_topic', name='forums-new_topic'),
bgneal@109 15 url(r'^mod/topic/lock/(\d+)/$', 'mod_topic_lock', name='forums-mod_topic_lock'),
bgneal@109 16 url(r'^mod/topic/stick/(\d+)/$', 'mod_topic_stick', name='forums-mod_topic_stick'),
bgneal@109 17 url(r'^mod/topic/delete/(\d+)/$', 'mod_topic_delete', name='forums-mod_topic_delete'),
bgneal@91 18 url(r'^post/(\d+)/$', 'goto_post', name='forums-goto_post'),
bgneal@108 19 url(r'^post/new/(?P<topic_id>\d+)/$', 'new_post', name='forums-new_post'),
bgneal@89 20 url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'),
bgneal@81 21 )
bgneal@83 22