Feature #403 - Ability to delete media entries - Fixes according to feedback
authorJoar Wandborg <git@wandborg.com>
Tue, 30 Aug 2011 21:16:46 +0000 (23:16 +0200)
committerJoar Wandborg <git@wandborg.com>
Tue, 30 Aug 2011 21:16:46 +0000 (23:16 +0200)
commit502073f2bf65380be18b349a678ac075777889a4
tree9472a0644926b2df8316d1f92fee53ebe58ae15c
parent7d0efbae2955cf58eed86daa30cd3507c9088269
Feature #403 - Ability to delete media entries - Fixes according to feedback

*   Moved `mediagoblin.confirm` stuff to `mediagoblin.user_pages`,
    templates too.
*   Removed route extension for `mediagoblin.confirm`
*   Created `delete_media_files` which deletes all media files
    on the public_store when the entry is deleted
*   Created a new decorator to check if a user has the permission
     to delete an entry.
mediagoblin/decorators.py
mediagoblin/routing.py
mediagoblin/storage.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html [new file with mode: 0644]
mediagoblin/tests/test_submission.py
mediagoblin/user_pages/forms.py
mediagoblin/user_pages/routing.py
mediagoblin/user_pages/views.py
mediagoblin/util.py