1
0
mirror of https://github.com/django/django.git synced 2025-07-19 00:59:17 +00:00

[1.0.X] Fixed #9399 -- Added StopFutureHandlers to export list in file handling.

Thanks, George Vilches.

Backport of r9992 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2009-03-08 09:33:14 +00:00
parent 8baac83f30
commit 34b530fce7

View File

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