Changes between Version 216 and Version 217 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
Aug 7, 2008, 8:32:25 AM (16 years ago)
Author:
Luke Plant
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v216 v217  
    11031103 * Signals are now instances of {{{django.dispatch.Signal}}} instead of anonymous objects.
    11041104 * 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}}}
    11061106 
    11071107So, a quick summary of the code changes you'd need to make:
     
    11131113|| {{{dispatcher.send(my_signal, sender)}}} || {{{my_signal.send(sender)}}} ||
    11141114|| {{{dispatcher.connect(my_handler, my_signal, sender=Any)}}} || {{{my_signal.connect(my_handler, sender=None)}}} ||
     1115
     1116It may be good practice to create a wrapper for {{{my_handler}}} which accepts {{{**kwargs}}} rather than change the signature of the original function.
Back to Top