From dd662e09d8139c1b76df284b47ffeadbf92d9557 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Thu, 19 Nov 2009 12:23:54 -0200 Subject: [PATCH] some minor fixes to scheduler middleware doc --- docs/experimental/scheduler-middleware.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/experimental/scheduler-middleware.rst b/docs/experimental/scheduler-middleware.rst index dff8dede2..8fb6358a2 100644 --- a/docs/experimental/scheduler-middleware.rst +++ b/docs/experimental/scheduler-middleware.rst @@ -25,7 +25,7 @@ The :setting:`SCHEDULER_MIDDLEWARES` setting is merged with the :setting:`SCHEDULER_MIDDLEWARES_BASE` setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine and -the last is the one closer to the spider. +the last is the one closer to the scheduler. To decide which order to assign to your middleware see the :setting:`SCHEDULER_MIDDLEWARES_BASE` setting and pick a value according to @@ -38,9 +38,9 @@ If you want to disable a builtin middleware (the ones defined in in your project :setting:`SCHEDULER_MIDDLEWARES` setting and assign `None` as its value. For example, if you want to disable the duplicates filter middleware:: - SPIDER_MIDDLEWARES = { + SCHEDULER_MIDDLEWARES = { 'myproject.middlewares.CustomSchedulerMiddleware': 543, - 'scrapy.contrib.spidermiddleware.duplicatesfilter.DuplicatesFilterMiddleware: None, + 'scrapy.contrib.schedulermiddleware.duplicatesfilter.DuplicatesFilterMiddleware: None, } Finally, keep in mind that some middlewares may need to be enabled through a