Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/files
Commit message (Collapse)AuthorAgeFilesLines
* Refs #9893 -- Removed shims for lack of max_length ↵Tim Graham2015-09-241-14/+1
| | | | support in file storage per deprecation timeline.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-3/+3
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham2015-06-151-3/+2
|
* Fixed #24963 -- Added File.seekable() on Python 3.Carson Gee2015-06-121-0/+5
|
* Fixed #24664 -- Removed misleading arg name from ↵David Danier2015-04-201-2/+2
| | | | TemporaryFileUploadHandler.new_file
* Removed unused exception "as" variable.Tim Graham2015-04-081-1/+1
|
* Fixed #24544 -- Fixed get_image_dimensions() on image ↵steve2015-04-081-0/+6
| | | | | | buffers that Pillow fails to parse. Thanks Steve Kossouho for the report and original patch.
* Fixed typo in django.core.files.File docstring.Matt Hooks2015-04-031-1/+1
|
* Fixed #24441 -- Changed get_image_dimensions() return ↵Raúl Cumplido2015-03-251-1/+1
| | | | value for broken images
* Sorted imports with isort; refs #23860.Tim Graham2015-02-065-11/+12
|
* Fixed #9893 -- Allowed using a field's max_length in the ↵Pavel Shpilev2015-01-121-7/+37
| | | | Storage.
* Removed shutil.copystat copied from stdlib (added to ↵Tim Graham2014-12-251-13/+2
| | | | support an old Python?).
* Fixed #23888 -- Fixed crash in File.__repr__() when name ↵Sergey Fedoseev2014-11-241-3/+4
| | | | contains unicode.
* Revert "Fixed #23892 -- Made deconstructible classes ↵Carl Meyer2014-11-231-1/+1
| | | | | | | | | | | forwards compatible" This reverts commit f36151ed169813f2873e13ca9de616cfa4095321. Adding kwargs to deconstructed objects does not achieve useful forward-compatibility in general, since additional arguments are silently dropped rather than having their intended effect. In fact, it can make the failure more difficult to diagnose. Thanks Shai Berger for discussion.
* Fixed #23892 -- Made deconstructible classes forwards ↵Carl Meyer2014-11-221-1/+1
| | | | compatible
* Removed import forgotten in previous commit.Aymeric Augustin2014-11-111-1/+0
|
* Raised SuspiciousFileOperation in safe_join.Aymeric Augustin2014-11-111-5/+1
| | | | | | | | | | | | | | | Added a test for the condition safe_join is designed to prevent. Previously, a generic ValueError was raised. It was impossible to tell an intentional exception raised to implement safe_join's contract from an unintentional exception caused by incorrect inputs or unexpected conditions. That resulted in bizarre exception catching patterns, which this patch removes. Since safe_join is a private API and since the change is unlikely to create security issues for users who use it anyway -- at worst, an uncaught SuspiciousFileOperation exception will bubble up -- it isn't documented.
* Fixed #8149 -- Made File.__iter__() support universal ↵Jon Dufresne2014-10-301-7/+34
| | | | | | | | | | | | newlines. The following are recognized as ending a line: the Unix end-of-line convention '\n', the Windows convention '\r\n', and the old Macintosh convention '\r'. http://www.python.org/dev/peps/pep-0278 Thanks tchaumeny for review.
* Clarified a comment in django.core.files.temp.Tim Graham2014-08-291-1/+2
|
* Fixed #23157 -- Removed O(n) algorithm when uploading ↵Tim Graham2014-08-201-6/+5
| | | | | | duplicate file names. This is a security fix. Disclosure following shortly.
* Made the vendored NamedTemporaryFile work as a context ↵Loic Bistuer2014-06-121-0/+7
| | | | | | | | manager. Refs #22680. This fixes a regression on Windows introduced by b7de5f5. Thanks Tim Graham for the report and review.
* Fixed #22680 -- I/O operation on closed file.Florian Apolloner2014-06-112-5/+0
| | | | | | | This patch is two-fold; first it ensure that Django does close everything in request.FILES at the end of the request and secondly the storage system should no longer close any files during save, it's up to the caller to handle that -- or let Django close the files at the end of the request.
* Fixed #22717 -- Auto-corrected missing ending slash in ↵Claude Paroz2014-06-041-0/+2
| | | | | | | FileSystemStorage Thanks David Fischer for the report and Moayad Mardini for the review.
* Fixed several typos in DjangoAlex Gaynor2014-05-291-1/+1
|
* Removed executeable bit from a few files.Florian Apolloner2014-05-251-0/+0
|
* Fixed #22337: FileSystemStorage marked as ↵Andrew Godwin2014-05-071-0/+2
| | | | deconstructible and tested.
* Fixed a failing test introduced in ↵Baptiste Mispelon2014-03-221-12/+19
| | | | | | 918a16bc4c099ab0cae72a231de3e99e2a9d02cb. Refs #22307.
* Fixed #22307 -- Fixed SpooledTemporaryFile bug in File ↵Hans Lawrenz2014-03-211-1/+1
| | | | | | | | | class. Added condition to prevent checking the existence of a file name of a file like object when the name attribute is None. This is necessary because a SpooledTemporaryFile won't exist on the file system or have a name until it has reached its max_size. Also added tests.
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-6/+6
| | | | refs #19934.
* Fixed regression in file locking on some platforms.smallcode2014-03-181-25/+25
| | | | | | | Some platforms with os.name == 'posix' do not have the fcntl module, e.g. AppEngine. refs #19373.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #22107 -- Fixed django.core.files.File object ↵Baptiste Mispelon2014-02-201-1/+1
| | | | | | | | | iteration. Due to a mixup between text and bytes, iteration over a File instance was broken under Python 3. Thanks to trac user pdewacht for the report and patch.
* Made content_type_extra optional for ↵Dmitro2014-02-181-2/+2
| | | | | | | | | TemporaryUploadedFile and MemoryUploadedFile. This provides better backwards compatibility for those constructing these objects manually. Refs #13721.
* Fixed #19373 -- Ported Windows file locking from PyWin32 ↵Kevin Christopher Henry2014-02-081-46/+89
| | | | | | | | | | | to ctypes There wasn't any file locking under Windows unless PyWin32 was installed. This removes that (undocumented) dependency by using ctypes instead. Thanks to Anatoly Techtonik for writing the ctypes port upon which this is based.
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-082-4/+4
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* fixed typo on docstringJosé Moreira2014-01-201-1/+1
|
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-2/+2
|
* Fixed #21380 -- Added a way to set different permission ↵Vajrasky Kok2013-11-291-4/+9
| | | | | | | | | for static directories. Previously when collecting static files, the directories would receive permissions from the global umask. Now the default permission comes from FILE_UPLOAD_DIRECTORY_PERMISSIONS and there's an option to specify the permissions by subclassing any of the static files storage classes and setting the directory_permissions_mode parameter.
* Use `classmethod` as a decorator.xuxiang2013-11-201-1/+1
|
* Fixed all E226 violationsAlex Gaynor2013-11-034-4/+4
|
* Fixed flake8 E251 violationsMilton Mazzarri2013-11-032-8/+8
|
* Fixed all E261 warningscoagulant2013-11-021-1/+1
|
* More attacking E302 violatorsAlex Gaynor2013-11-025-0/+16
|
* Replaced a hardcoded "2" with the right named constantAlex Gaynor2013-11-021-1/+5
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-0/+2
|
* Fixed #21219 -- Added a way to set different permission ↵Vajrasky Kok2013-10-241-3/+7
| | | | | | | | | | | for static files. Previously, when collecting static files, the files would receive permission from FILE_UPLOAD_PERMISSIONS. Now, there's an option to give different permission from uploaded files permission by subclassing any of the static files storage classes and setting the file_permissions_mode parameter. Thanks dblack at atlassian.com for the suggestion.
* Start attacking E231 violationsAlex Gaynor2013-10-243-5/+7
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+1
|
* Fixed assorted flake8 errors.Tim Graham2013-10-111-0/+2
|