from __future__ import absolute_import

from django.conf.urls import patterns, url

from django_comments.feeds import LatestCommentFeed

from custom_comments import views


feeds = {
     'comments': LatestCommentFeed,
}

urlpatterns = patterns('',
    url(r'^post/$', views.custom_submit_comment),
    url(r'^flag/(\d+)/$', views.custom_flag_comment),
    url(r'^delete/(\d+)/$', views.custom_delete_comment),
    url(r'^approve/(\d+)/$', views.custom_approve_comment),
    url(r'^cr/(\d+)/(.+)/$', 'django.contrib.contenttypes.views.shortcut', name='comments-url-redirect'),
)

urlpatterns += patterns('',
    (r'^rss/comments/$', LatestCommentFeed()),
)

[((15, 4, 15, 48), 'django.conf.urls.url', 'url', ({(15, 8, 15, 18): '"""^post/$"""', (15, 20, 15, 47): 'views.custom_submit_comment'}, {}), "('^post/$', views.custom_submit_comment)", False, 'from django.conf.urls import patterns, url\n'), ((16, 4, 16, 52), 'django.conf.urls.url', 'url', ({(16, 8, 16, 24): '"""^flag/(\\\\d+)/$"""', (16, 26, 16, 51): 'views.custom_flag_comment'}, {}), "('^flag/(\\\\d+)/$', views.custom_flag_comment)", False, 'from django.conf.urls import patterns, url\n'), ((17, 4, 17, 56), 'django.conf.urls.url', 'url', ({(17, 8, 17, 26): '"""^delete/(\\\\d+)/$"""', (17, 28, 17, 55): 'views.custom_delete_comment'}, {}), "('^delete/(\\\\d+)/$', views.custom_delete_comment)", False, 'from django.conf.urls import patterns, url\n'), ((18, 4, 18, 58), 'django.conf.urls.url', 'url', ({(18, 8, 18, 27): '"""^approve/(\\\\d+)/$"""', (18, 29, 18, 57): 'views.custom_approve_comment'}, {}), "('^approve/(\\\\d+)/$', views.custom_approve_comment)", False, 'from django.conf.urls import patterns, url\n'), ((19, 4, 19, 104), 'django.conf.urls.url', 'url', (), '', False, 'from django.conf.urls import patterns, url\n'), ((23, 25, 23, 44), 'django_comments.feeds.LatestCommentFeed', 'LatestCommentFeed', ({}, {}), '()', False, 'from django_comments.feeds import LatestCommentFeed\n')]