app/django/contrib/comments/urls/comments.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Wed, 01 Oct 2008 22:19:22 +0000
changeset 259 74eb6b01c82c
parent 54 03e267d67478
permissions -rw-r--r--
Add basic Sponsors List, Create New Sponsor, Sponsor Public Profile views. Change all properties in Group model as required for now. Remaining TODO: write validation functions for Sponsor edit and create form fields that need additional validation (like address, phone number format). Patch by: Pawel Solyga Review by: to-be-reviewed

from django.conf.urls.defaults import *

urlpatterns = patterns('django.contrib.comments.views',
    (r'^post/$', 'comments.post_comment'),
    (r'^postfree/$', 'comments.post_free_comment'),
    (r'^posted/$', 'comments.comment_was_posted'),
    (r'^karma/vote/(?P<comment_id>\d+)/(?P<vote>up|down)/$', 'karma.vote'),
    (r'^flag/(?P<comment_id>\d+)/$', 'userflags.flag'),
    (r'^flag/(?P<comment_id>\d+)/done/$', 'userflags.flag_done'),
    (r'^delete/(?P<comment_id>\d+)/$', 'userflags.delete'),
    (r'^delete/(?P<comment_id>\d+)/done/$', 'userflags.delete_done'),
)