Django

Code

Ticket #11441 (new)

Opened 9 months ago

Last modified 8 months ago

Signal documentation should mention 'weak' parameter for connect

Reported by: Mike_A Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords: weak signal
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

In the documentation for signals: http://docs.djangoproject.com/en/dev/topics/signals/

No reference at all is made to the 'weak' parameter of connect. This caused me to spend about an hour scratching my head as to why my signals didn't seem to work at all. In the end I realised I needed to set this to False to stop the signal from dropping the callback and silently failing, but only after writing a debugging signal class.

Attachments

Change History

07/14/09 20:45:07 changed by sayane

  • needs_better_patch changed.
  • version changed from 1.0 to SVN.
  • needs_tests changed.
  • needs_docs changed.

AND dispatch_uid argument AND send_robust function AND disconnect function ;-)

08/06/09 22:09:13 changed by Alex

  • stage changed from Unreviewed to Accepted.

Add/Change #11441 (Signal documentation should mention 'weak' parameter for connect)




Change Properties
Action