Skip to content

Commit

Permalink
[fc] Repository: plone.formwidget.namedfile
Browse files Browse the repository at this point in the history
Branch: refs/heads/master
Date: 2019-03-22T22:51:01+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.formwidget.namedfile@efdf292

Only use the new feature for keeping an already uploaded image when it is a POST request.

Fixes auto csrf error in site-controlpanel (plone/Products.CMFPlone#2628)
and personal-information (plone/Products.CMFPlone#2709) page.

Files changed:
A news/2628.bugfix
M plone/formwidget/namedfile/widget.py
Repository: plone.formwidget.namedfile

Branch: refs/heads/master
Date: 2019-03-25T14:10:32+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.formwidget.namedfile@b77b76e

Add more test isolation to widgets.rst.

With a new request, we should instantiate a new widget and call update and extract on it.
Otherwise for example a file_upload_id can linger from a previous call.

Files changed:
M plone/formwidget/namedfile/widget.rst
Repository: plone.formwidget.namedfile

Branch: refs/heads/master
Date: 2019-03-25T14:46:37+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.formwidget.namedfile@3975588

Fixed Py23DocChecker.

There was a small mistake on Python 2: we basically set 'got = want', which meant the doctests always passed...

Files changed:
M plone/formwidget/namedfile/tests.py
M plone/formwidget/namedfile/widget.rst
Repository: plone.formwidget.namedfile

Branch: refs/heads/master
Date: 2019-03-26T12:43:01+01:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.formwidget.namedfile@846f5f4

Merge pull request #38 from plone/maurits-issue-2813-plone-protect

Only keep already uploaded image when it is a POST request

Files changed:
A news/2628.bugfix
M plone/formwidget/namedfile/tests.py
M plone/formwidget/namedfile/widget.py
M plone/formwidget/namedfile/widget.rst
  • Loading branch information
jensens committed Mar 26, 2019
1 parent 658241a commit 6567d08
Showing 1 changed file with 49 additions and 22 deletions.
Loading

0 comments on commit 6567d08

Please sign in to comment.