removing /videos/libreplanet, etc URLs
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 6 Mar 2017 22:20:57 +0000 (17:20 -0500)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 6 Mar 2017 22:20:57 +0000 (17:20 -0500)
These videos and photos are already tagged, and we can just use the
tagging system to show them:

https://media.libreplanet.org/u/libreplanet/tag/libreplanet-2016-video/
https://media.libreplanet.org/u/libreplanet/tag/libreplanet-2016/

mediagoblin_libreplanet/__init__.py
mediagoblin_libreplanet/views.py

index 67d9d50..0e842e8 100644 (file)
@@ -80,12 +80,7 @@ register_routes([('all-videos', '/videos',
                  ('featured-videos', '/videos/featured',
                   'mediagoblin.plugins.libreplanet.views:featured_video_listing'),
                  ('featured-photos', '/photos/featured',
-                  'mediagoblin.plugins.libreplanet.views:featured_image_listing'),
-
-                 ('libreplanet-videos', '/videos/libreplanet',
-                  'mediagoblin.plugins.libreplanet.views:libreplanet_video_listing'),
-                 ('libreplanet-photos', '/photos/libreplanet',
-                  'mediagoblin.plugins.libreplanet.views:libreplanet_image_listing')
+                  'mediagoblin.plugins.libreplanet.views:featured_image_listing')
              ])
 
 # This is a dict that specifies which hooks this plugin uses.
index 087ba57..4163f8e 100644 (file)
@@ -60,12 +60,3 @@ def featured_image_listing(request, page):
 def featured_video_listing(request, page):
     return type_listing(u'mediagoblin.media_types.video', 'Featured Videos', request, page, "featured")
 
-
-@uses_pagination
-def libreplanet_image_listing(request, page):
-    return type_listing(u'mediagoblin.media_types.image', 'LibrePlanet Photos', request, page, "libreplanet")
-
-@uses_pagination
-def libreplanet_video_listing(request, page):
-    return type_listing(u'mediagoblin.media_types.video', 'LibrePlanet Videos', request, page, "libreplanet")
-