Scrapy, a fast high-level web crawling & scraping framework for Python.
docs: fix MailSender and Settings method references
Daniel Granaa29fed066c6b
diff --git a/scrapy/trunk/docs/ref/email.rst b/scrapy/trunk/docs/ref/email.rstindex 6862836b0..f03fe7f13 100644--- a/scrapy/trunk/docs/ref/email.rst+++ b/scrapy/trunk/docs/ref/email.rst@@ -32,7 +32,7 @@ MailSender class referenceMailSender is the preferred class to use for sending emails from Scrapy, as ituses `Twisted non-blocking IO`_, like the rest of the framework.-.. class:: scrapy.mail.MailSender(smtphost, mailfrom)+.. class:: MailSender(smtphost, mailfrom)``smtphost`` is a string with the SMTP host to use for sending the emails.If omitted, :setting:`MAIL_HOST` will be used.@@ -40,10 +40,10 @@ uses `Twisted non-blocking IO`_, like the rest of the framework.``mailfrom`` is a string with the email address to use for sending messages(in the ``From:`` header). If omitted, :setting:`MAIL_FROM` will be used.-.. method:: send(to, subject, body, cc=None, attachs=())+.. method:: MailSender.send(to, subject, body, cc=None, attachs=())Send mail to the given recipients-+``to`` is a list of email recipients``subject`` is a string with the subject of the messagediff --git a/scrapy/trunk/docs/topics/settings.rst b/scrapy/trunk/docs/topics/settings.rstindex 95522d8a2..fea85c4e3 100644--- a/scrapy/trunk/docs/topics/settings.rst+++ b/scrapy/trunk/docs/topics/settings.rst@@ -87,9 +87,9 @@ In other words, settings can be accesed like a dict, but it's usually preferredto extract the setting in the format you need it to avoid type errors. In orderto do that you'll have to use one of the following methods:-.. class:: scrapy.conf.Settings+.. class:: Settings-.. method:: get(name, default=None)+.. method:: Settings.get(name, default=None)Get a setting value without affecting its original type.@@ -97,7 +97,7 @@ to do that you'll have to use one of the following methods:``default`` is the value to return if no setting is found-.. method:: getbool(name, deafult=Flse)+.. method:: Settings.getbool(name, deafult=Flse)Get a setting value as a boolean. For example, both ``1`` and ``'1'``, and``True`` return ``True``, while ``0``, ``'0'``, ``False`` and ``None``@@ -110,7 +110,7 @@ to do that you'll have to use one of the following methods:``default`` is the value to return if no setting is found-.. method:: getint(name, default=0)+.. method:: Settings.getint(name, default=0)Get a setting value as an int@@ -118,7 +118,7 @@ to do that you'll have to use one of the following methods:``default`` is the value to return if no setting is found-.. method:: getfloat(name, default=0.0)+.. method:: Settings.getfloat(name, default=0.0)Get a setting value as a float@@ -126,7 +126,7 @@ to do that you'll have to use one of the following methods:``default`` is the value to return if no setting is found-.. method:: getlist(name, default=None)+.. method:: Settings.getlist(name, default=None)Get a setting value as a list. If the setting original type is a list itwill be returned verbatim. If it's a string it will be splitted by ",".