From fb13d3d83b323581502d0203b783dac28a6dac40 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Thu, 29 Jan 2009 20:18:53 +0000 Subject: [PATCH] doc: added status argument to domain_closed signal --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40799 --- scrapy/trunk/docs/ref/signals.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scrapy/trunk/docs/ref/signals.rst b/scrapy/trunk/docs/ref/signals.rst index 33694718e..d962bf188 100644 --- a/scrapy/trunk/docs/ref/signals.rst +++ b/scrapy/trunk/docs/ref/signals.rst @@ -23,12 +23,16 @@ Here's a list of signals used in Scrapy and their meaning, in alphabetical order. .. signal:: domain_closed -.. function:: domain_closed(domain, spider) +.. function:: domain_closed(domain, spider, status) Sent right after a spider/domain has been closed. ``domain`` is a string which contains the domain of the spider which has been closed ``spider`` is the spider which has been closed +``status`` is a string which can have two values: ``'finished'`` if the domain +has finished successfully, or ``'cancelled'`` if the domain was cancelled (for +example, by hitting Ctrl-C, by calling the engine ``stop()`` method or by +explicitly closing the domain). .. signal:: domain_open .. function:: domain_open(domain, spider)