1
0
mirror of https://github.com/django/django.git synced 2024-12-24 01:55:49 +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:
Malcolm Tredinnick 2009-03-08 09:31:30 +00:00
parent e8a817d499
commit d8fdf4d7ac

View File

@ -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