From 710574352dabcab4c710f2795a26501e54329e79 Mon Sep 17 00:00:00 2001 From: hrcerqueira Date: Thu, 18 Feb 2010 00:14:01 +0000 Subject: Fixed some errors and moved some folders to inside the forum folder. --- middleware/cancel.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 middleware/cancel.py (limited to 'middleware/cancel.py') diff --git a/middleware/cancel.py b/middleware/cancel.py deleted file mode 100644 index 51e1b253..00000000 --- a/middleware/cancel.py +++ /dev/null @@ -1,15 +0,0 @@ -from django.http import HttpResponseRedirect -from utils.forms import get_next_url -import logging -class CancelActionMiddleware(object): - def process_view(self, request, view_func, view_args, view_kwargs): - if 'cancel' in request.REQUEST: - #todo use session messages for the anonymous users - try: - msg = getattr(view_func,'CANCEL_MESSAGE') - except AttributeError: - msg = 'action canceled' - request.user.message_set.create(message=msg) - return HttpResponseRedirect(get_next_url(request)) - else: - return None -- cgit v1.2.3-1-g7c22