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',
|
__all__ = ['UploadFileException','StopUpload', 'SkipFile', 'FileUploadHandler',
|
||||||
'TemporaryFileUploadHandler', 'MemoryFileUploadHandler',
|
'TemporaryFileUploadHandler', 'MemoryFileUploadHandler',
|
||||||
'load_handler']
|
'load_handler', 'StopFutureHandlers']
|
||||||
|
|
||||||
class UploadFileException(Exception):
|
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.
|
This exception is raised by an upload handler that wants to skip a given file.
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class StopFutureHandlers(UploadFileException):
|
class StopFutureHandlers(UploadFileException):
|
||||||
"""
|
"""
|
||||||
Upload handers that have handled a file and do not want future handlers to
|
Upload handers that have handled a file and do not want future handlers to
|
||||||
|
|
Loading…
Reference in New Issue