Ticket #14559: typos.diff
File typos.diff, 2.6 KB (added by , 14 years ago) |
---|
-
django/dispatch/dispatcher.py
41 41 A function or an instance method which is to receive signals. 42 42 Receivers must be hashable objects. 43 43 44 if weak is True, then receiver must be weak-referencable (more44 If weak is True, then receiver must be weak-referencable (more 45 45 precisely saferef.safeRef() must be able to create a reference 46 46 to the receiver). 47 47 … … 52 52 dispatch_uid. 53 53 54 54 sender 55 The sender to which the receiver should respond Must either be55 The sender to which the receiver should respond. Must either be 56 56 of type Signal, or None to receive events from any sender. 57 57 58 58 weak 59 Whether to use weak references to the receiver By default, the59 Whether to use weak references to the receiver. By default, the 60 60 module will attempt to use weak references to the receiver 61 61 objects. If this parameter is false, then strong references will 62 62 be used. … … 170 170 Arguments: 171 171 172 172 sender 173 The sender of the signal Can be any python object (normally one173 The sender of the signal. Can be any python object (normally one 174 174 registered with a connect if you actually want something to 175 175 occur). 176 176 … … 182 182 Return a list of tuple pairs [(receiver, response), ... ]. May raise 183 183 DispatcherKeyError. 184 184 185 if any receiver raises an error (specifically any subclass of185 If any receiver raises an error (specifically any subclass of 186 186 Exception), the error instance is returned as the result for that 187 187 receiver. 188 188 """ -
django/middleware/common.py
90 90 return http.HttpResponsePermanentRedirect(newurl) 91 91 92 92 def process_response(self, request, response): 93 " Check for a flat page (for 404s)and calculate the Etag, if needed."93 "Send broken link emails and calculate the Etag, if needed." 94 94 if response.status_code == 404: 95 95 if settings.SEND_BROKEN_LINK_EMAILS: 96 96 # If the referrer was from an internal link or a non-search-engine site,