From 8ea041811768688270a9354c5bd8de353e3df947 Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Thu, 17 May 2018 12:53:09 +0200 Subject: [PATCH] add changelog --- CHANGES.rst | 3 +++ plone/app/z3cform/tests/tests.py | 2 +- plone/app/z3cform/widget.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 8c091bad..ce9d6d84 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,9 @@ New features: Bug fixes: +- Cleanup code analysis problems. + [jensens] + - Fix SingleCheckBoxBoolWidget description to render structure [allusa] diff --git a/plone/app/z3cform/tests/tests.py b/plone/app/z3cform/tests/tests.py index 94758e27..baf525bd 100644 --- a/plone/app/z3cform/tests/tests.py +++ b/plone/app/z3cform/tests/tests.py @@ -43,7 +43,7 @@ def test_suite(): package='plone.app.z3cform', optionflags=( doctest.ELLIPSIS | - doctest.NORMALIZE_WHITESPACE, + doctest.NORMALIZE_WHITESPACE ), ), layer=PAZ3CForm_INTEGRATION_TESTING) diff --git a/plone/app/z3cform/widget.py b/plone/app/z3cform/widget.py index a9267de1..4bd9b3f6 100644 --- a/plone/app/z3cform/widget.py +++ b/plone/app/z3cform/widget.py @@ -666,7 +666,7 @@ def render(self): mt_select.attrib['name'] = '{0}.mimeType'.format(self.name) mt_select.attrib['class'] = mt_pattern_name mt_select.attrib[ - 'data-{0}'.format(mt_pattern_name), + 'data-{0}'.format(mt_pattern_name) ] = json.dumps( { 'textareaName': self.name,