summaryrefslogtreecommitdiff
path: root/app/lib/fdigg/middleware.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-09-22 22:37:52 -0400
committerluxagraf <sng@luxagraf.net>2012-09-22 22:37:52 -0400
commit52d5613672758ac6c8ebffc7f33d94d47bde6180 (patch)
tree0b6e1fbc4ed013b2ba701dedeb39be9781ff8204 /app/lib/fdigg/middleware.py
parentefb623af0bcb47d510501c282e1326b11343a29c (diff)
moved outside dependencies to virtualenv and dumped some unused apps out of lib
Diffstat (limited to 'app/lib/fdigg/middleware.py')
-rw-r--r--app/lib/fdigg/middleware.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/lib/fdigg/middleware.py b/app/lib/fdigg/middleware.py
deleted file mode 100644
index c21ab7f..0000000
--- a/app/lib/fdigg/middleware.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from django.shortcuts import render_to_response
-import re
-import logging
-digg_re = re.compile(r'http://digg.com/\w{1,8}/*(\?.*)?$')
-class FckDiggMiddleware(object):
- def process_request(self, request):
-
- if request.META.has_key('HTTP_REFERER'):
- logging.info(request.META['HTTP_REFERER'])
- if digg_re.search(request.META['HTTP_REFERER']):
- return render_to_response('details/fck_digg.html') \ No newline at end of file