# Copyright (c) 2011, 2012 Free Software Foundation
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
"""Urls for the Gstudio feeds"""
from django.conf.urls.defaults import url
from django.conf.urls.defaults import patterns
from gstudio.feeds import LatestNodetypes
from gstudio.feeds import NodetypeDiscussions
from gstudio.feeds import NodetypeComments
from gstudio.feeds import NodetypeTrackbacks
from gstudio.feeds import NodetypePingbacks
from gstudio.feeds import SearchNodetypes
from gstudio.feeds import TagNodetypes
from gstudio.feeds import MetatypeNodetypes
from gstudio.feeds import AuthorNodetypes
urlpatterns = patterns(
'',
url(r'^latest/$',
LatestNodetypes(),
name='gstudio_nodetype_latest_feed'),
url(r'^search/$',
SearchNodetypes(),
name='gstudio_nodetype_search_feed'),
url(r'^tags/(?P[- \w]+)/$',
TagNodetypes(),
name='gstudio_tag_feed'),
url(r'^authors/(?P[.+-@\w]+)/$',
AuthorNodetypes(),
name='gstudio_author_feed'),
url(r'^metatypes/(?P[-\/\w]+)/$',
MetatypeNodetypes(),
name='gstudio_metatype_feed'),
url(r'^discussions/(?P\d{4})/(?P\d{2})/' \
'(?P\d{2})/(?P[-\w]+)/$',
NodetypeDiscussions(),
name='gstudio_nodetype_discussion_feed'),
url(r'^comments/(?P\d{4})/(?P\d{2})/' \
'(?P\d{2})/(?P[-\w]+)/$',
NodetypeComments(),
name='gstudio_nodetype_comment_feed'),
url(r'^pingbacks/(?P\d{4})/(?P\d{2})/' \
'(?P\d{2})/(?P[-\w]+)/$',
NodetypePingbacks(),
name='gstudio_nodetype_pingback_feed'),
url(r'^trackbacks/(?P\d{4})/(?P\d{2})/' \
'(?P\d{2})/(?P[-\w]+)/$',
NodetypeTrackbacks(),
name='gstudio_nodetype_trackback_feed'),
)