Author: Alex
Date: 2010-11-02 13:30:31 -0500 (Tue, 02 Nov 2010)
New Revision: 14442
Modified:
django/branches/releases/1.2.X/django/dispatch/dispatcher.py
django/branches/releases/1.2.X/django/middleware/common.py
Log:
[1.2.X] Fixed #14559 -- corrected some typos and misleading docstrings. Thanks
to Gabriel Hurley for the patch. Backport of [14441].
Modified: django/branches/releases/1.2.X/django/dispatch/dispatcher.py
===================================================================
--- django/branches/releases/1.2.X/django/dispatch/dispatcher.py
2010-11-02 18:30:00 UTC (rev 14441)
+++ django/branches/releases/1.2.X/django/dispatch/dispatcher.py
2010-11-02 18:30:31 UTC (rev 14442)
@@ -41,7 +41,7 @@
A function or an instance method which is to receive signals.
Receivers must be hashable objects.
- if weak is True, then receiver must be weak-referencable (more
+ If weak is True, then receiver must be weak-referencable (more
precisely saferef.safeRef() must be able to create a reference
to the receiver).
@@ -52,11 +52,11 @@
dispatch_uid.
sender
- The sender to which the receiver should respond Must either be
+ The sender to which the receiver should respond. Must either be
of type Signal, or None to receive events from any sender.
weak
- Whether to use weak references to the receiver By default, the
+ Whether to use weak references to the receiver. By default, the
module will attempt to use weak references to the receiver
objects. If this parameter is false, then strong references
will
be used.
@@ -170,7 +170,7 @@
Arguments:
sender
- The sender of the signal Can be any python object (normally one
+ The sender of the signal. Can be any python object (normally
one
registered with a connect if you actually want something to
occur).
@@ -182,7 +182,7 @@
Return a list of tuple pairs [(receiver, response), ... ]. May raise
DispatcherKeyError.
- if any receiver raises an error (specifically any subclass of
+ If any receiver raises an error (specifically any subclass of
Exception), the error instance is returned as the result for that
receiver.
"""
Modified: django/branches/releases/1.2.X/django/middleware/common.py
===================================================================
--- django/branches/releases/1.2.X/django/middleware/common.py 2010-11-02
18:30:00 UTC (rev 14441)
+++ django/branches/releases/1.2.X/django/middleware/common.py 2010-11-02
18:30:31 UTC (rev 14442)
@@ -80,7 +80,7 @@
return http.HttpResponsePermanentRedirect(newurl)
def process_response(self, request, response):
- "Check for a flat page (for 404s) and calculate the Etag, if needed."
+ "Send broken link emails and calculate the Etag, if needed."
if response.status_code == 404:
if settings.SEND_BROKEN_LINK_EMAILS:
# If the referrer was from an internal link or a
non-search-engine site,
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.