Skip to content

Commit 24df5b5

Browse files
committed
Replaced six.u() by safe_unicode() to handle unicode strings
1 parent d083c88 commit 24df5b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Changelog
1010
[aduchene]
1111
- Fixed an issue with `helper.dexterity.DXDocumentGenerationHelperView.check_permission` raising when it should not.
1212
[aduchene]
13+
- Replaced `six.u()` by safe_unicode() to handle unicode strings.
14+
[sgeulette]
1315

1416
3.43 (2024-04-10)
1517
-----------------

src/collective/documentgenerator/browser/controlpanel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from plone.app.registry.browser.controlpanel import RegistryEditForm
1212
from Products.CMFPlone.utils import safe_unicode
1313
from Products.statusmessages.interfaces import IStatusMessage
14-
from six import u
1514
from z3c.form import button
1615
from zope import schema
1716
from zope.interface import implementer
@@ -61,7 +60,7 @@ class IDocumentGeneratorControlPanelSchema(Interface):
6160
title=_(u"oo_port_list"),
6261
description=_(u'Port Number(s) of OO.'),
6362
required=False,
64-
default=u(os.getenv('OO_PORT', DEFAULT_OO_PORT))
63+
default=safe_unicode(os.getenv('OO_PORT', DEFAULT_OO_PORT))
6564
)
6665

6766
uno_path = schema.TextLine(

0 commit comments

Comments
 (0)