- 27 Şub, 2013 12 kayıt (commit)
-
-
Claude Paroz yazdı
Thanks Randy Salvo for the report.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
* StandardError doesn't exist any more under Python 3. * Python 2.6 still allows `raise "foo"`.
-
Aymeric Augustin yazdı
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.
-
Anssi Kääriäinen yazdı
There were a couple of errors in ._dirty flag handling: * It started as None, but was never reset to None. * The _dirty flag was sometimes used to indicate if the connection was inside transaction management, but this was not done consistently. This also meant the flag had three separate values. * The None value had a special meaning, causing for example inability to commit() on new connection unless enter/leave tx management was done. * The _dirty was tracking "connection in transaction" state, but only in managed transactions. * Some tests never reset the transaction state of the used connection. * And some additional less important changes. This commit has some potential for regressions, but as the above list shows, the current situation isn't perfect either.
-
Tim Graham yazdı
Thanks Preston Holmes for the text.
-
Łukasz Langa yazdı
-
Ramiro Morales yazdı
-
Ramiro Morales yazdı
-
Ramiro Morales yazdı
This allows us to iremove an inter-command import.
-
Ramiro Morales yazdı
Fixes #19584. This implies stop storing file path command line arguments in envvars as a security measure to start relying on with Popen's shell=False instead, and addition of an 'utils' module. Thanks kmichel_wgs for the report.
-
- 26 Şub, 2013 21 kayıt (commit)
-
-
Claude Paroz yazdı
-
Carl Meyer yazdı
-
Claude Paroz yazdı
Forward port of ab6ff2e0 from stable/1.5
-
Claude Paroz yazdı
-
Claude Paroz yazdı
-
Carl Meyer yazdı
-
Tim Graham yazdı
Thanks amoebob for the report.
-
Florian Apolloner yazdı
If Django was symlinked into site-packages the previous approach to discover the tests subdirectory would fail. The revised version now always points to the location of the source and not the import path.
-
Florian Apolloner yazdı
-
Florian Apolloner yazdı
-
Florian Apolloner yazdı
This is needed to make 'python runtests.py' work, otherwise only 'python ./runtests.py' would work.
-
Florian Apolloner yazdı
Thanks to Ramiro Morales for the initial patch.
-
Florian Apolloner yazdı
-
Florian Apolloner yazdı
-
Florian Apolloner yazdı
-
Florian Apolloner yazdı
-
Florian Apolloner yazdı
-
Florian Apolloner yazdı
-
Florian Apolloner yazdı
-
Aymeric Augustin yazdı
Tests can run nearly as fast under PostgreSQL and MySQL as under SQLite with a bit of configuration and the speedup is always a good thing.
-
Carl Meyer yazdı
-
- 25 Şub, 2013 7 kayıt (commit)
-
-
Łukasz Langa yazdı
Thanks to choongmin for the original patch.
-
Aymeric Augustin yazdı
Classes overriding __eq__ need a __hash__ such that equal objects have the same hash. Thanks akaariai for the report and regebro for the patch.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
Fixed #17919.
-
Aymeric Augustin yazdı
Thanks dahool for the report and initial version of the patch.
-
Carl Meyer yazdı
-
Aymeric Augustin yazdı
Fixed #18176 -- Added test for year lookups with year < 1000
-