summaryrefslogtreecommitdiff
path: root/django/dispatch
AgeCommit message (Collapse)Author
2015-02-09[1.8.x] Sorted imports with isort; refs #23860.Tim Graham
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2015-01-23[1.8.x] Clarified docstring in dispatch/dispatcher.pyTim Graham
Backport of 851f5bd413a93708436a129442007448755b34f3 from master
2015-01-02Added return value to Signal.disconnect().Andriy Sokolovskiy
2014-12-13Fixed #23812 -- Changed django.utils.six.moves.xrange imports to rangeMichael Hall
2014-12-02Fixed typo in django/dispatch/dispatcher.py docstring.jerry dumblauskas
2014-05-16Fixed #16245 -- Included traceback in send_robust()'s responseUnai Zalakain
Exceptions from the (receiver, exception) tuples returned by ``send_robust()`` now have always their traceback attached as their ``__traceback__`` argument.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-02-05Simplified signal code.Florian Apolloner
Refs #21952
2014-02-05Fixed #21952 -- signals deadlock due to locking + weakref interactionAnssi Kääriäinen
2014-01-12Fixed flake8 issues.Simon Charette
2014-01-12Added license info for the weakref backportsFlorian Apolloner
2014-01-09Fixed removal of signal receivers in Python 3.4Florian Apolloner
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.
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-11-23Fixed #21486 -- Prevented settings config in signal connectionClaude Paroz
This was particularly problematic in the chain get_wsgi_application -> db.connections import -> signal connection -> settings configuration. Thanks Jon Dufresne for the report.
2013-11-19Use `classmethod` as a decorator.xuxiang
2013-11-03Fixed flake8 E251 violationsMilton Mazzarri
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-26Fixed up some more flake8 violations (this particular violation still has ↵Alex Gaynor
many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-23Fixed E225 pep8 warnings.Tim Graham
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-08-20Fixed #20943 -- Weakly reference senders when caching their associated receiversSimon Charette
2013-02-25Fixed #19634 -- Added proper __hash__ methods.Aymeric Augustin
Classes overriding __eq__ need a __hash__ such that equal objects have the same hash. Thanks akaariai for the report and regebro for the patch.
2012-12-16Fixed #16679 -- Use caching to speed up signal sendingAnssi Kääriäinen
2012-11-03Fixed #18963 -- Used a subclass-friendly patternAymeric Augustin
for Python 2 object model compatibility methods.
2012-09-28Added a way to check if a signal has listenersAnssi Kääriäinen
2012-08-15[py3] Fixed dispatch testsClaude Paroz
2012-08-08[py3] Replaced __nonzero__ by __bool__Claude Paroz
Of course, __nonzero__ alias has been kept for Python 2 compatibility.
2012-07-22[py3] Added Python 3 compatibility for xrange.Aymeric Augustin
2012-06-23Switch to using context managers for acquiring and releasing locks.Alex Gaynor
2012-06-23Don't use a list comprehension when we don't need the resulting list.Alex Gaynor
2012-06-23Fixed #18454 -- Added ability to pass a list of signals to `receiver`.Dmitry Medvinsky
Added ability to use receiver decorator in the following way: @receiver([post_save, post_delete], sender=MyModel) def signals_receiver(sender, **kwargs): ...
2012-05-18Got rid of old __cmp__methods replaced by rich comparison.Claude Paroz
The __cmp__ methods are unsupported in Python 3. _doctest.py has been left untouched because it is likely it will not be migrated to Python 3.
2012-05-12Replaced im_func and im_self by __func__ and __self__.Claude Paroz
The new names are Python 3 compatible.
2012-04-30Replaced print statement by print function (forward compatibility syntax).Claude Paroz
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-28Removed a bunch more Python 2.4 workarounds now that we don't support that ↵Adrian Holovaty
version. Refs #15702 -- thanks to jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-21Preventing problems possibly introduced by r14662Honza Král
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
2010-11-21Fixed #14533 -- Make django signals more thread-safe. Thanks milosu for the ↵Honza Král
patch! git-svn-id: http://code.djangoproject.com/svn/django/trunk@14662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02Fixed #14559 -- corrected some typos and misleading docstrings. Thanks to ↵Alex Gaynor
Gabriel Hurley for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-12Fixed #9015 -- added a signal decorator for simplifying signal connectionsBrian Rosner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-04Fixed #12164 -- Removed the Python 2.3 compatibility imports and ↵Russell Keith-Magee
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
2009-05-20Fixed #11134: signals recievers that disconnect during their processing no ↵Jacob Kaplan-Moss
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
2009-04-10Fixed #10753 -- Fixed regression in dispatcher after [10398]. Thanks for the ↵Adrian Holovaty
patch and tests, minmax git-svn-id: http://code.djangoproject.com/svn/django/trunk@10497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05Fixed #9989: fixed a subtle edge case where removing signals could break. ↵Jacob Kaplan-Moss
Thanks, ferringb. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25Fixed #8285: signal handlers that aren't functions work under DEBUG. This ↵Jacob Kaplan-Moss
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