File tree Expand file tree Collapse file tree 5 files changed +2
-8
lines changed
src/plone/formwidget/namedfile Expand file tree Collapse file tree 5 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 11from setuptools import setup
22
3-
43version = "4.0.0a2.dev0"
54
65setup (
Original file line number Diff line number Diff line change 44from plone .formwidget .namedfile .widget import NamedImageWidget # noqa
55from zope .i18nmessageid import MessageFactory
66
7-
87_ = MessageFactory ("plone" )
Original file line number Diff line number Diff line change 1414import os
1515import transaction
1616
17-
1817ANNOTATION_KEY = "plone.formwidget.namedfile.scale"
1918ENVIRONMENT_KEY = "PLONE_SCALE_GENERATE_ON_SAVE"
2019
Original file line number Diff line number Diff line change @@ -30,13 +30,11 @@ class IFileUploadTemporaryStorage(Interface):
3030 To be used to not need to re-upload files after form submission errors.
3131 """
3232
33- upload_map = Attribute (
34- """
33+ upload_map = Attribute ("""
3534 Mapping for temporary uploads.
3635 Key is a uuid4.hex value.
3736 The default storage is the annotation storage of the poral root.
38- """
39- )
37+ """ )
4038
4139 def cleanup ():
4240 """Removes stale temporary uploads from the upload storage"""
Original file line number Diff line number Diff line change 1212from zope .interface import Interface
1313from ZPublisher .HTTPRequest import FileUpload
1414
15-
1615FILE_UPLOAD_MAP_KEY = "file_upload_map"
1716FILE_UPLOAD_EXPIRATION_TIME = 30 * 60 # seconds
1817FALLBACK_DATE = datetime (2000 , 2 , 2 )
You can’t perform that action at this time.
0 commit comments