From 8b5462ed2eee83e895d26dea05e3ced78de5ed96 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Tue, 27 May 2014 17:33:47 +0200 Subject: [PATCH] remove /check-ip --- isso/tests/test_comments.py | 3 --- isso/views/comments.py | 4 ---- 2 files changed, 7 deletions(-) diff --git a/isso/tests/test_comments.py b/isso/tests/test_comments.py index b278c8b..9975bcb 100644 --- a/isso/tests/test_comments.py +++ b/isso/tests/test_comments.py @@ -375,9 +375,6 @@ class TestComments(unittest.TestCase): # just for the record self.assertEqual(self.post('/id/1/dislike', content_type=js).status_code, 200) - def testCheckIP(self): - self.assertEqual(self.get('/check-ip').data.decode("utf-8"), '192.168.1.0') - class TestModeratedComments(unittest.TestCase): diff --git a/isso/views/comments.py b/isso/views/comments.py index 5ce369a..6c79189 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -92,7 +92,6 @@ class API(object): ('moderate',('POST', '/id///')), ('like', ('POST', '/id//like')), ('dislike', ('POST', '/id//dislike')), - ('checkip', ('GET', '/check-ip')), ('demo', ('GET', '/demo')) ] @@ -476,8 +475,5 @@ class API(object): return JSON(self.comments.count(*data), 200) - def checkip(self, env, req): - return Response(utils.anonymize(str(req.remote_addr)), 200) - def demo(self, env, req): return redirect(get_current_url(env) + '/index.html')