From 46d38f9e6d68f33a14fa14174a8473479b8826d3 Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 27 Apr 2021 13:47:35 -0400 Subject: [PATCH] remove honeypot --- BaseFormatter.py | 1 - CherryPyApp.py | 3 --- HTMLFormatter.py | 4 ---- templates/bibrec.html | 3 --- 4 files changed, 11 deletions(-) diff --git a/BaseFormatter.py b/BaseFormatter.py index 7f3f738..79028d9 100644 --- a/BaseFormatter.py +++ b/BaseFormatter.py @@ -165,7 +165,6 @@ class BaseFormatter(object): # file_.dropbox_filename = None file_.gdrive_url = None file_.msdrive_url = None - file_.honeypot_url = None if file_.filetype == 'cover.medium': dc.cover_image = file_ diff --git a/CherryPyApp.py b/CherryPyApp.py index 9bce20a..6624321 100644 --- a/CherryPyApp.py +++ b/CherryPyApp.py @@ -277,9 +277,6 @@ def main(): d.connect('stats', r'/stats/', controller=Page.NullPage(), _static=True) - d.connect('honeypot_send', r'/ebooks/send/megaupload/{id:\d+}.{filetype}', - controller=Page.NullPage(), _static=True) - # /w/captcha/question/ so varnish will cache it d.connect('captcha.question', r'/w/captcha/question/', controller=Page.GoHomePage()) diff --git a/HTMLFormatter.py b/HTMLFormatter.py index 92dc727..a68cfb9 100644 --- a/HTMLFormatter.py +++ b/HTMLFormatter.py @@ -94,10 +94,6 @@ class XMLishFormatter (BaseFormatter.BaseFormatter): file_.filename = file_.filename + '?' + urllib.parse.urlencode ( { 'session_id': str (cherrypy.session.id) } ) - for file_ in dc.files: - file_.honeypot_url = os.url ( - 'honeypot_send', id = dc.project_gutenberg_id, filetype = file_.filetype) - break def format (self, page, os): diff --git a/templates/bibrec.html b/templates/bibrec.html index ba7d8ef..376f48d 100644 --- a/templates/bibrec.html +++ b/templates/bibrec.html @@ -175,9 +175,6 @@ Gutenberg metadata much faster than by scraping. title="Send to Google Drive." rel="nofollow"> -