From 377800e7795b7258cfbbdc22cebb8fd6fb4490d9 Mon Sep 17 00:00:00 2001 From: Aditi Mittal Date: Thu, 5 Sep 2013 21:22:15 +0530 Subject: [PATCH] Add url for viewing page which lists all blogs created by a user. --- mediagoblin/media_types/blog/__init__.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mediagoblin/media_types/blog/__init__.py b/mediagoblin/media_types/blog/__init__.py index c4437275..83742d0a 100644 --- a/mediagoblin/media_types/blog/__init__.py +++ b/mediagoblin/media_types/blog/__init__.py @@ -51,9 +51,14 @@ def setup_plugin(): '/u//b//p//edit/', 'mediagoblin.media_types.blog.views:blogpost_edit' ), - #blog admin dashboard + #blog collection dashboard in case of multiple blogs + ('mediagoblin.media_types.blog.blog_admin_dashboard', + '/u//b/dashboard/', + 'mediagoblin.media_types.blog.views:blog_dashboard' + ), + #blog dashboard ('mediagoblin.media_types.blog.blog-dashboard', - '/u//b//blog_dashboard/', + '/u//b//dashboard/', 'mediagoblin.media_types.blog.views:blog_dashboard' ), #blog post listing view @@ -82,12 +87,8 @@ class BlogPostMediaManager(MediaManagerBase): blog = Blog.query.filter_by(id=blog_post_data.blog).first() return blog -def get_media_type_and_manager(): - return MEDIA_TYPE, BlogPostMediaManager - hooks = { 'setup': setup_plugin, - 'get_media_type_and_manager': get_media_type_and_manager, ('media_manager', MEDIA_TYPE): lambda: BlogPostMediaManager, } -- 2.25.1