#!/usr/bin/python

from handler import Handler
import accessControl


class DeleteBlog(Handler):

    @accessControl.user_logged_in
    @accessControl.post_exist
    @accessControl.user_owns_blog
    def get(self, blog_id, blog):
        blog.delete()
        self.redirect('/blog/?')

f43beec410b62884e3af93d63562b3427ede650b
<mask token>

<mask token>


class DeleteBlog(Handler):
    <mask token>

<mask token>


class DeleteBlog(Handler):

    @accessControl.user_logged_in
    @accessControl.post_exist
    @accessControl.user_owns_blog
    def get(self, blog_id, blog):
        blog.delete()
        self.redirect('/blog/?')

from handler import Handler
import accessControl


class DeleteBlog(Handler):

    @accessControl.user_logged_in
    @accessControl.post_exist
    @accessControl.user_owns_blog
    def get(self, blog_id, blog):
        blog.delete()
        self.redirect('/blog/?')

#!/usr/bin/python

from handler import Handler
import accessControl


class DeleteBlog(Handler):

    @accessControl.user_logged_in
    @accessControl.post_exist
    @accessControl.user_owns_blog
    def get(self, blog_id, blog):
        blog.delete()
        self.redirect('/blog/?')
