Skip to content

Commit

Permalink
Merge pull request #52 from plone/py3purgefix
Browse files Browse the repository at this point in the history
Fix python3 related encoding error on manual purge page.
  • Loading branch information
jensens authored Sep 13, 2019
2 parents ebf34f1 + de1e9b6 commit e1b310c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions news/51.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix python3 related encoding error on manual purge page.
[agitator]
5 changes: 5 additions & 0 deletions plone/app/caching/browser/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,11 @@ def processPurge(self):
_(u'There were errors.'), 'error')
return

if six.PY3:
urls = [x.decode('utf8') if isinstance(x, six.binary_type)
else x for x in urls
]

purger = getUtility(IPurger)
serverURL = self.request['SERVER_URL']

Expand Down

0 comments on commit e1b310c

Please sign in to comment.