mirror of
https://github.com/django/django.git
synced 2024-12-24 10:05:46 +00:00
Fixed #9399 -- Added StopFutureHandlers to export list in file handling.
Thanks, George Vilches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e8a817d499
commit
d8fdf4d7ac
@ -13,7 +13,7 @@ from django.core.files.uploadedfile import TemporaryUploadedFile, InMemoryUpload
|
||||
|
||||
__all__ = ['UploadFileException','StopUpload', 'SkipFile', 'FileUploadHandler',
|
||||
'TemporaryFileUploadHandler', 'MemoryFileUploadHandler',
|
||||
'load_handler']
|
||||
'load_handler', 'StopFutureHandlers']
|
||||
|
||||
class UploadFileException(Exception):
|
||||
"""
|
||||
@ -44,7 +44,7 @@ class SkipFile(UploadFileException):
|
||||
This exception is raised by an upload handler that wants to skip a given file.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class StopFutureHandlers(UploadFileException):
|
||||
"""
|
||||
Upload handers that have handled a file and do not want future handlers to
|
||||
|
Loading…
Reference in New Issue
Block a user