django1/django/core/files
Karen Tracey df7ffe616a Fixed #8900: Added errno=13 (permission denied) to the class of ignored OSErrors when attempting to delete the old file in file_move_safe.
This error was seen on Windows with Pythons < 2.5.  In the case where the error was seen, the old file is auto-deleted on close anyway by the Windows-specific NamedTemporaryFile support.

No new test because the failure could be seen when running the file_uploads test with Python 2.3/2.4 on Windows.  With this fix file_uploads runs clean in that environment.

While in the neignborhood fixed up the docstrings to better match the reality of what the code does and what the function is named.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@10396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05 04:41:39 +00:00
..
__init__.py File storage refactoring, adding far more flexibility to Django's file handling. The new files.txt document has details of the new features. 2008-08-08 20:59:02 +00:00
base.py Fixed #10044: You can now assign directly to file fields (`instance.filefield = somefile`). Thanks, Marty Alchin. 2009-01-16 21:48:37 +00:00
images.py Don't import PIL until needed so that systems without PIL don't barf. 2008-08-08 21:57:25 +00:00
locks.py Fixed #8403 -- Changed the use of fcntl.flock() to fcntl.lockf(). On some 2008-08-28 19:28:45 +00:00
move.py Fixed #8900: Added errno=13 (permission denied) to the class of ignored OSErrors when attempting to delete the old file in file_move_safe. 2009-04-05 04:41:39 +00:00
storage.py Fixed #8193: all dynamic imports in Django are now done correctly. I know this because Brett Cannon borrowed the time machine and brought Python 2.7's '`importlib` back for inclusion in Django. Thanks for the patch-from-the-future, Brett! 2009-03-18 16:55:59 +00:00
temp.py Fixed #8203 -- Fixed temporary file deleation on Windows and a couple of edge 2008-08-23 17:56:02 +00:00
uploadedfile.py FIxed #8156: `UploadedFile.__repr__` now returns a string, a good `__repr__` should. 2008-08-27 20:53:02 +00:00
uploadhandler.py Fixed #8193: all dynamic imports in Django are now done correctly. I know this because Brett Cannon borrowed the time machine and brought Python 2.7's '`importlib` back for inclusion in Django. Thanks for the patch-from-the-future, Brett! 2009-03-18 16:55:59 +00:00