Skip to content

Commit

Permalink
missing class
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Mar 28, 2019
1 parent 7612ce0 commit 59ffe5b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions plone/app/z3cform/factories.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer
from plone.namedfile.storages import MAXCHUNKSIZE
from plone.namedfile.interfaces import IStorage


@implementer(IStorage)
class Zope2FileUploadStorable(object):

def store(self, data, blob):
data.seek(0)
with blob.open('w') as fp:
block = data.read(MAXCHUNKSIZE)
while block:
fp.write(block)
block = data.read(MAXCHUNKSIZE)
2 changes: 1 addition & 1 deletion plone/app/z3cform/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from Acquisition import ImplicitAcquisitionWrapper
from lxml import etree
from OFS.interfaces import ISimpleItem
from plone.app.event.base import first_weekday
from plone.app.textfield.value import RichTextValue
from plone.app.textfield.widget import RichTextWidget as patext_RichTextWidget
from plone.app.vocabularies.terms import TermWithDescription
from plone.app.widgets.base import dict_merge
from plone.app.widgets.base import InputWidget
from plone.app.widgets.base import SelectWidget as BaseSelectWidget
from plone.app.widgets.base import TextareaWidget
from plone.app.widgets.utils import first_weekday
from plone.app.widgets.utils import get_context_url
from plone.app.widgets.utils import get_date_options
from plone.app.widgets.utils import get_datetime_options
Expand Down

1 comment on commit 59ffe5b

@jenkins-plone-org

This comment was marked as outdated.

Please sign in to comment.