aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-11-16 11:05:08 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-21 08:11:40 +0100
commit950124e640913e150088d8644506aceaadd7ef49 (patch)
tree38fc5cd3b7f1b418e68d4b4b12daa5fc7d6bf65b /mediagoblin/user_pages
parent62d14bf50baf45ac15fe5276be74b073de880f77 (diff)
downloadmediagoblin-950124e640913e150088d8644506aceaadd7ef49.tar.lz
mediagoblin-950124e640913e150088d8644506aceaadd7ef49.tar.xz
mediagoblin-950124e640913e150088d8644506aceaadd7ef49.zip
webob.HTTPFound --> MG.tools.redirect
Transition away from webob. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/user_pages')
-rw-r--r--mediagoblin/user_pages/views.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index a091f13b..fe4f5dbc 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -14,7 +14,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from webob import exc
import logging
import datetime
@@ -167,8 +166,7 @@ def media_post_comment(request, media):
media_uploader.wants_comment_notification):
send_comment_email(media_uploader, comment, media, request)
- return exc.HTTPFound(
- location=media.url_for_self(request.urlgen))
+ return redirect(request, location=media.url_for_self(request.urlgen))
@get_user_media_entry
@@ -302,8 +300,8 @@ def media_confirm_delete(request, media):
messages.add_message(
request, messages.ERROR,
_("The media was not deleted because you didn't check that you were sure."))
- return exc.HTTPFound(
- location=media.url_for_self(request.urlgen))
+ return redirect(request,
+ location=media.url_for_self(request.urlgen))
if ((request.user.is_admin and
request.user.id != media.uploader)):