remove honeypot
parent
3ce333bf50
commit
46d38f9e6d
|
@ -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_
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -175,9 +175,6 @@ Gutenberg metadata much faster than by scraping.
|
|||
title="Send to Google Drive." rel="nofollow"><span class="icon icon_gdrive" /></a>
|
||||
</td>
|
||||
<td class="noprint">
|
||||
<a py:if="file_.honeypot_url"
|
||||
href="${file_.honeypot_url}"
|
||||
title="Send to MegaUpload." rel="nofollow" />
|
||||
<a py:if="file_.msdrive_url"
|
||||
href="${file_.msdrive_url}"
|
||||
title="Send to OneDrive." rel="nofollow"><span class="icon icon_msdrive" /></a>
|
||||
|
|
Loading…
Reference in New Issue