From b1e234365c4dbe2d2588d17acd1a0553e36e9d43 Mon Sep 17 00:00:00 2001 From: Aditi Date: Fri, 19 Jul 2013 16:55:42 +0530 Subject: [PATCH] Change view and urls for blog edit/create page. --- mediagoblin/media_types/blog/routing.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/mediagoblin/media_types/blog/routing.py b/mediagoblin/media_types/blog/routing.py index b674042b..5c141c31 100644 --- a/mediagoblin/media_types/blog/routing.py +++ b/mediagoblin/media_types/blog/routing.py @@ -18,9 +18,9 @@ from mediagoblin.tools.routing import add_route #URL mapping for blog-admin, where all the blog posts of a particular blog #are listed. providing the facility of edit, delete and view a particular blog post." -add_route('mediagoblin.media_types.blog.blog-admin', \ - '/u//b//blog-admin/', 'mediagoblin.media_types.blog.views:blog-admin') - +#add_route('mediagoblin.media_types.blog.blog-admin', \ +# '/u//b//blog-admin/', 'mediagoblin.media_types.blog.views:blog-admin') + #URL mapping for creating a new blog post. add_route('mediagoblin.media_types.blog.blogpost.create', '/u//b//create/', 'mediagoblin.media_types.blog.views:blog_post_edit') @@ -35,12 +35,20 @@ add_route('mediagoblin.media_types.blog.blogpost.edit', '/u//b//blog-collection-admin/', 'mediagoblin.media_types.blog.views:blog-collection-admin') +##URL mapping for creating a new blog. +#add_route('mediagoblin.media_types.blog.create', '/u//b/create/', + #'mediagoblin.media_types.blog.views:blog_create') + + #URL mapping for creating a new blog. add_route('mediagoblin.media_types.blog.create', '/u//b/create/', - 'mediagoblin.media_types.blog.views:blog_create') + 'mediagoblin.media_types.blog.views:blog_edit') + + + #URL mapping for editing an existing blog. -add_route('mediagoblin.media_types.blog.create', '/u//b//edit/', +add_route('mediagoblin.media_types.blog.edit', '/u//b//edit/', 'mediagoblin.media_types.blog.views:blog_edit') #route for gallery view of blog posts and blogs. -- 2.25.1