django1/django
Aymeric Augustin 59a3520875 Refactored database exceptions wrapping.
Squashed commit of the following:

commit 2181d833ed1a2e422494738dcef311164c4e097e
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Wed Feb 27 14:28:39 2013 +0100

    Fixed #15901 -- Wrapped all PEP-249 exceptions.

commit 5476a5d93c19aa2f928c497d39ce6e33f52694e2
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Tue Feb 26 17:26:52 2013 +0100

    Added PEP 3134 exception chaining.

    Thanks Jacob Kaplan-Moss for the suggestion.

commit 9365fad0a650328002fb424457d675a273c95802
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Tue Feb 26 17:13:49 2013 +0100

    Improved API for wrapping database errors.

    Thanks Alex Gaynor for the proposal.

commit 1b463b765f2826f73a8d9266795cd5da4f8d5e9e
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Tue Feb 26 15:00:39 2013 +0100

    Removed redundant exception wrapping.

    This is now taken care of by the cursor wrapper.

commit 524bc7345a724bf526bdd2dd1bcf5ede67d6bb5c
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Tue Feb 26 14:55:10 2013 +0100

    Wrapped database exceptions in the base backend.

    This covers the most common PEP-249 APIs:
    - Connection APIs: close(), commit(), rollback(), cursor()
    - Cursor APIs: callproc(), close(), execute(), executemany(),
      fetchone(), fetchmany(), fetchall(), nextset().

    Fixed #19920.

commit a66746bb5f0839f35543222787fce3b6a0d0a3ea
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Tue Feb 26 14:53:34 2013 +0100

    Added a wrap_database_exception context manager and decorator.

    It re-throws backend-specific exceptions using Django's common wrappers.
2013-02-27 17:26:54 +01:00
..
bin Advanced pending deprecation warnings. 2012-12-29 21:59:07 +01:00
conf Merged core translations from 1.5 branch 2013-02-26 21:51:06 +01:00
contrib Merged contrib translations from 1.5 branch 2013-02-26 21:51:06 +01:00
core Move management helper function to new utils module. 2013-02-26 22:07:22 -03:00
db Refactored database exceptions wrapping. 2013-02-27 17:26:54 +01:00
dispatch Fixed #19634 -- Added proper __hash__ methods. 2013-02-25 23:05:20 +01:00
forms Fixed #19908 -- Added missing import in forms.py 2013-02-24 22:59:15 +01:00
http Added a new required ALLOWED_HOSTS setting for HTTP host header validation. 2013-02-19 11:23:29 -07:00
middleware Fixes #17866: Vary: Accept-Language header when language prefix used 2013-02-23 19:41:33 +01:00
shortcuts Fixed #19692 -- Completed deprecation of mimetype in favor of content_type. 2013-01-31 13:54:40 +01:00
template [py3] Always fed hashlib with bytes. 2013-02-27 10:02:07 +01:00
templatetags Remove leading underscore from a function that's all growed up now. 2013-02-25 00:33:29 -07:00
test Fixed #19634 -- Added proper __hash__ methods. 2013-02-25 23:05:20 +01:00
utils [py3] Always fed hashlib with bytes. 2013-02-27 10:02:07 +01:00
views Loaded cycle and firstof from future in built-in templates. Refs #17906. 2013-02-24 15:16:45 +01:00
__init__.py Advanced version identifiers for 1.6 cycle. 2012-10-26 22:01:34 -03:00