summaryrefslogtreecommitdiff
path: root/django/dispatch/dispatcher.py
Commit message (Collapse)AuthorAgeFilesLines
* Corrected a few typos in Signal.send() docstring.Jarek Glowacki2016-01-121-3/+3
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Removed support for Python 3.3.Tim Graham2015-06-181-2/+3
|
* Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham2015-06-151-15/+3
|
* Fixed #24205 -- Deprecated Signal.disconnect weak parameter.Florian Apolloner2015-01-231-4/+6
|
* Clarified docstring in dispatch/dispatcher.pyTim Graham2015-01-231-3/+3
|
* Added return value to Signal.disconnect().Andriy Sokolovskiy2015-01-021-0/+3
|
* Fixed #23812 -- Changed django.utils.six.moves.xrange imports to rangeMichael Hall2014-12-131-2/+2
|
* Fixed typo in django/dispatch/dispatcher.py docstring.jerry dumblauskas2014-12-021-1/+1
|
* Fixed #16245 -- Included traceback in send_robust()'s responseUnai Zalakain2014-05-161-1/+4
| | | | | | Exceptions from the (receiver, exception) tuples returned by ``send_robust()`` now have always their traceback attached as their ``__traceback__`` argument.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Simplified signal code.Florian Apolloner2014-02-051-12/+9
| | | | Refs #21952
* Fixed #21952 -- signals deadlock due to locking + weakref interactionAnssi Kääriäinen2014-02-051-14/+23
|
* Fixed flake8 issues.Simon Charette2014-01-121-1/+1
|
* Fixed removal of signal receivers in Python 3.4Florian Apolloner2014-01-091-27/+36
| | | | | | | | | Make use of `weakref.finalize` and `weakref.WeakMethod` on python 3.4. Simplified the removal of receivers, the old function looked overly complicated. Many thanks go to Antoine Pitrou for helping me to debug and explain all the failures I ran into while writing that patch.
* Fixed #21486 -- Prevented settings config in signal connectionClaude Paroz2013-11-231-1/+1
| | | | | | This was particularly problematic in the chain get_wsgi_application -> db.connections import -> signal connection -> settings configuration. Thanks Jon Dufresne for the report.
* Fixed #20943 -- Weakly reference senders when caching their associated receiversSimon Charette2013-08-201-4/+8
|
* Fixed #16679 -- Use caching to speed up signal sendingAnssi Kääriäinen2012-12-161-22/+51
|
* Added a way to check if a signal has listenersAnssi Kääriäinen2012-09-281-0/+3
|
* [py3] Added Python 3 compatibility for xrange.Aymeric Augustin2012-07-221-19/+20
|
* Switch to using context managers for acquiring and releasing locks.Alex Gaynor2012-06-231-13/+4
|
* Don't use a list comprehension when we don't need the resulting list.Alex Gaynor2012-06-231-1/+2
|
* Fixed #18454 -- Added ability to pass a list of signals to `receiver`.Dmitry Medvinsky2012-06-231-2/+9
| | | | | | | | Added ability to use receiver decorator in the following way: @receiver([post_save, post_delete], sender=MyModel) def signals_receiver(sender, **kwargs): ...
* Replaced im_func and im_self by __func__ and __self__.Claude Paroz2012-05-121-2/+2
| | | | The new names are Python 3 compatible.
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-1/+1
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Preventing problems possibly introduced by r14662Honza Král2010-11-211-3/+3
| | | | | | | acquire a lock before entering a try block that ends with the lock's release. Thanks for the catch Alex. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14533 -- Make django signals more thread-safe. Thanks milosu for the ↵Honza Král2010-11-211-18/+35
| | | | | | patch! git-svn-id: http://code.djangoproject.com/svn/django/trunk@14662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14559 -- corrected some typos and misleading docstrings. Thanks to ↵Alex Gaynor2010-11-021-5/+5
| | | | | | Gabriel Hurley for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9015 -- added a signal decorator for simplifying signal connectionsBrian Rosner2010-09-121-0/+16
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@13773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12164 -- Removed the Python 2.3 compatibility imports and ↵Russell Keith-Magee2010-05-041-4/+0
| | | | | | workarounds. Thanks to timo and claudep for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11134: signals recievers that disconnect during their processing no ↵Jacob Kaplan-Moss2009-05-201-73/+98
| | | | | | | | longer mess things up for other handlers. Thanks, Honza Kral. While I was at it I also cleaned up the formatting of the docstrings a bit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10831 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10753 -- Fixed regression in dispatcher after [10398]. Thanks for the ↵Adrian Holovaty2009-04-101-0/+1
| | | | | | patch and tests, minmax git-svn-id: http://code.djangoproject.com/svn/django/trunk@10497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9989: fixed a subtle edge case where removing signals could break. ↵Jacob Kaplan-Moss2009-04-051-3/+4
| | | | | | Thanks, ferringb. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8285: signal handlers that aren't functions work under DEBUG. This ↵Jacob Kaplan-Moss2008-08-251-2/+18
| | | | | | slightly loosens the sanity check, but things that are valid under production shouldn't fail under debug. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7830 -- Removed all of the remaining, deprecated, non-oldforms features:Gary Wilson Jr2008-08-101-45/+0
| | | | | | | | | | | | | | | * Support for representing files as strings was removed. Use `django.core.files.base.ContentFile` instead. * Support for representing uploaded files as dictionaries was removed. Use `django.core.files.uploadedfile.SimpleUploadedFile` instead. * The `filename`, `file_name`, `file_size`, and `chuck` properties of `UploadedFile` were removed. Use the `name`, `name`, `size`, and `chunks` properties instead, respectively. * The `get_FIELD_filename`, `get_FIELD_url`, `get_FIELD_size`, and `save_FIELD_file` methods for Models with `FileField` fields were removed. Instead, use the `path`, `url`, and `size` attributes and `save` method on the field itself, respectively. * The `get_FIELD_width` and `get_FIELD_height` methods for Models with `ImageField` fields were removed. Use the `width` and `height` attributes on the field itself instead. * The dispatcher `connect`, `disconnect`, `send`, and `sendExact` functions were removed. Use the signal object's own `connect`, `disconnect`, `send`, and `send` methods instead, respectively. * The `form_for_model` and `form_for_instance` functions were removed. Use a `ModelForm` subclass instead. * Support for importing `django.newforms` was removed. Use `django.forms` instead. * Support for importing `django.utils.images` was removed. Use `django.core.files.images` instead. * Support for the `follow` argument in the `create_object` and `update_object` generic views was removed. Use the `django.forms` package and the new `form_class` argument instead. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Major refactoring of django.dispatch with an eye towards speed. The net ↵Jacob Kaplan-Moss2008-08-061-457/+205
| | | | | | | | | | | | | | | result is that signals are up to 90% faster. Though some attempts and backwards-compatibility were made, speed trumped compatibility. Thus, as usual, check BackwardsIncompatibleChanges for the complete list of backwards-incompatible changes. Thanks to Jeremy Dunck and Keith Busell for the bulk of the work; some ideas from Brian Herring's previous work (refs #4561) were incorporated. Documentation is, sigh, still forthcoming. Fixes #6814 and #3951 (with the new dispatch_uid argument to connect). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7847 -- Removed a whole bunch of unused imports from throughout the ↵Adrian Holovaty2008-07-221-16/+16
| | | | | | codebase. Thanks, julien git-svn-id: http://code.djangoproject.com/svn/django/trunk@8046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3439: vastly improved the performance of django.dispatch (and added ↵Jacob Kaplan-Moss2007-02-261-60/+58
| | | | | | tests!). Thanks to Brian Harring for the patch. Note that one of the new tests fails under sqlite currently; it's not clear if this is a sqlite problem or a problem with the tests, but it appears not to be a problem with the dispatcher itself. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Part 3 of pedant day: replaced all tabs in Django with spaces. Python the ↵Jacob Kaplan-Moss2006-07-211-431/+431
| | | | | | way Guido intended it, baby! git-svn-id: http://code.djangoproject.com/svn/django/trunk@3415 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty2006-05-021-0/+497
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37