X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Flistings%2Frouting.py;h=ee8f502027174fe6df13f8dd5b96c09ce344752e;hb=283043f14d8fdeb8cccad00b7d7cb7a8cc5a17bd;hp=b72bd01519000b3ff4bc04df4b38c5454b126854;hpb=12a100e4d8bdda7bd2353403a7e08e3a94669498;p=mediagoblin.git
diff --git a/mediagoblin/listings/routing.py b/mediagoblin/listings/routing.py
index b72bd015..ee8f5020 100644
--- a/mediagoblin/listings/routing.py
+++ b/mediagoblin/listings/routing.py
@@ -1,5 +1,5 @@
# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 MediaGoblin contributors. See AUTHORS.
+# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
#
# 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
@@ -14,15 +14,16 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
+from mediagoblin.tools.routing import add_route
-from routes.route import Route
+add_route('mediagoblin.listings.tags_listing',
+ "/tag//",
+ "mediagoblin.listings.views:tag_listing")
-tag_routes = [
- # Route('mediagoblin.listings.tags_home', "/",
- # controller="mediagoblin.listings.views:tags_home"),
- Route('mediagoblin.listings.tags_listing', "/{tag}/",
- controller="mediagoblin.listings.views:tag_listing"),
- Route('mediagoblin.listings.tag_atom_feed', "/{tag}/atom/",
- controller="mediagoblin.listings.views:tag_atom_feed"),
- ]
-
+# Atom feeds:
+add_route('mediagoblin.listings.tag_atom_feed', "/tag//atom/",
+ "mediagoblin.listings.views:atom_feed")
+
+# The all new entries feed
+add_route('mediagoblin.listings.atom_feed', '/atom/',
+ "mediagoblin.listings.views:atom_feed")