doc: added status argument to domain_closed signal

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40799
This commit is contained in:
Pablo Hoffman 2009-01-29 20:18:53 +00:00
parent b3050ca0e4
commit fb13d3d83b
1 changed files with 5 additions and 1 deletions

View File

@ -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)