kill AjaxCrawlableMiddlewar.enabled_setting

This commit is contained in:
Mikhail Korobov 2013-12-20 19:08:49 +06:00
parent 943a0bd264
commit ee46ec8920
1 changed files with 1 additions and 3 deletions

View File

@ -13,10 +13,8 @@ class AjaxCrawlableMiddleware(object):
For more info see https://developers.google.com/webmasters/ajax-crawling/docs/getting-started.
"""
enabled_setting = 'AJAXCRAWLABLE_ENABLED'
def __init__(self, settings):
if not settings.getbool(self.enabled_setting):
if not settings.getbool('AJAXCRAWLABLE_ENABLED'):
raise NotConfigured
# XXX: Google parses at least first 100k bytes; scrapy's redirect