django1/django/core
Jacob Kaplan-Moss 2b0903b2c4 Fixed #10404: ImageField height_field and width_field options no longer depend on putting the image field after the height/width fields as they did after r9766.
This bug actually exposed a related handful of inconsistancies in the underlying file handling and wraping, so a few related changes are in here as well:

    * Dimensions are also now calculated the moment the image is assigned to the field instead of upon save.
    * The base `File` object now when possible delegates its closed attribute down to the os-level file it wrapps.
    * In-memory files' `close()` now is a no-op. Without this certain APIs that should be able to handle in-memory files were failing.
    * Accessing `FieldFile.closed` used to open the file. That's silly, and it doesn't any more.
    * Some over-eager error handling was squishing some errors that would normally be raised. One unit test was incorrectly depending on this behavior, so the test was removed.

Thanks to Armin Ronacher for much of this work.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-11 09:57:19 +00:00
..
cache Fixed #9644: fix a thread sync issue in the locmem cache. Thanks, mrts. 2009-04-01 17:05:19 +00:00
files Fixed #10404: ImageField height_field and width_field options no longer depend on putting the image field after the height/width fields as they did after r9766. 2009-05-11 09:57:19 +00:00
handlers Reverted [10346] because it effectively breaks USE_I18N by forcing import of translation before settings are ready. 2009-04-01 21:58:38 +00:00
management Fixed #10234 -- Improved error message when internationalizing templates. 2009-04-12 02:50:41 +00:00
serializers Fixed #9522 -- Modified handling of values in base serializer so that field subclasses can define their own value_to_string() method for serialization. Thanks to Alex Koshelev for the report and initial patch. 2009-04-13 12:35:49 +00:00
servers Fixed #9659: fixed `wsgi.file_wrapper` in the builtin server. Thanks, mitsuhiko. 2009-05-07 15:39:06 +00:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
context_processors.py No, really: PermWrapper is not iterable. Fixes #8182. 2008-08-09 15:38:44 +00:00
exceptions.py Removed oldforms, validators, and related code: 2008-08-27 07:19:44 +00:00
mail.py Fixed #9214: EmailMessage now respects the From header instead of blindly using from_email. Thanks, Tai Lee. 2009-02-16 20:47:39 +00:00
paginator.py Removed several deprecated features for 1.0 (refs #7830): 2008-08-02 04:56:11 +00:00
signals.py Major refactoring of django.dispatch with an eye towards speed. The net result is that signals are up to 90% faster. 2008-08-06 15:32:46 +00:00
template_loader.py MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. 2006-05-02 01:31:56 +00:00
urlresolvers.py Fixed #10065 -- Corrected an error message when an empty urlpattern object is provided. Thanks to Matthew Flanagan for the patch. 2009-04-04 06:54:56 +00:00
xheaders.py Fixed #4933 -- Fixed a typo and reformatted a fairly long line in passing. Thanks, Ludvig Ericson. 2007-08-12 10:29:59 +00:00