Changes between Version 216 and Version 217 of BackwardsIncompatibleChanges
- Timestamp:
- Aug 7, 2008, 8:32:25 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BackwardsIncompatibleChanges
v216 v217 1103 1103 * Signals are now instances of {{{django.dispatch.Signal}}} instead of anonymous objects. 1104 1104 * Connecting, disconnecting, and sending signals are done via methods on the {{{Signal}}} object instead of through module methods in {{{django.dispatch.dispatcher}}}. The module-level methods are deprecated. 1105 * The {{{Anonymous}}} and {{{Any}}} sender options no longer exist. You can still receive signals sent by any sender by 1105 * The {{{Anonymous}}} and {{{Any}}} sender options no longer exist. You can still receive signals sent by any sender by using {{{sender=None}}} 1106 1106 1107 1107 So, a quick summary of the code changes you'd need to make: … … 1113 1113 || {{{dispatcher.send(my_signal, sender)}}} || {{{my_signal.send(sender)}}} || 1114 1114 || {{{dispatcher.connect(my_handler, my_signal, sender=Any)}}} || {{{my_signal.connect(my_handler, sender=None)}}} || 1115 1116 It may be good practice to create a wrapper for {{{my_handler}}} which accepts {{{**kwargs}}} rather than change the signature of the original function.