2012-05-16 02:55:13 +04:00
|
|
|
from django.conf.urls.defaults import patterns, url, include
|
2012-06-14 03:24:13 +04:00
|
|
|
|
|
|
|
from reviews.views import delete as amo_delete
|
2012-05-16 02:55:13 +04:00
|
|
|
from reviews.feeds import ReviewsRss
|
2012-06-14 03:24:13 +04:00
|
|
|
|
2012-05-16 02:55:13 +04:00
|
|
|
from . import views
|
|
|
|
|
|
|
|
|
|
|
|
# These all start with /apps/<app_slug>/reviews/<review_id>/.
|
|
|
|
detail_patterns = patterns('',
|
2012-05-16 22:20:03 +04:00
|
|
|
url('^$', views.review_list, name='ratings.detail'),
|
|
|
|
url('^flag$', views.flag, name='ratings.flag'),
|
2012-06-14 03:24:13 +04:00
|
|
|
url('^delete$', amo_delete, name='ratings.delete'),
|
2012-05-16 22:20:03 +04:00
|
|
|
url('^edit$', views.edit, name='ratings.edit'),
|
2012-05-16 02:55:13 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
review_patterns = patterns('',
|
2012-05-16 22:20:03 +04:00
|
|
|
url('^$', views.review_list, name='ratings.list'),
|
|
|
|
url('^add$', views.add, name='ratings.add'),
|
2012-05-16 02:55:13 +04:00
|
|
|
url('^(?P<review_id>\d+)/', include(detail_patterns)),
|
2012-05-16 22:20:03 +04:00
|
|
|
url('^format:rss$', ReviewsRss(), name='ratings.list.rss'),
|
|
|
|
url('^user:(?P<user_id>\d+)$', views.review_list, name='ratings.user'),
|
2012-05-16 02:55:13 +04:00
|
|
|
)
|