Skip to content

Commit

Permalink
Replaced six.u() by safe_unicode() to handle unicode strings
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Dec 16, 2024
1 parent d083c88 commit 24df5b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Changelog
[aduchene]
- Fixed an issue with `helper.dexterity.DXDocumentGenerationHelperView.check_permission` raising when it should not.
[aduchene]
- Replaced `six.u()` by safe_unicode() to handle unicode strings.
[sgeulette]

3.43 (2024-04-10)
-----------------
Expand Down
3 changes: 1 addition & 2 deletions src/collective/documentgenerator/browser/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from plone.app.registry.browser.controlpanel import RegistryEditForm
from Products.CMFPlone.utils import safe_unicode
from Products.statusmessages.interfaces import IStatusMessage
from six import u
from z3c.form import button
from zope import schema
from zope.interface import implementer
Expand Down Expand Up @@ -61,7 +60,7 @@ class IDocumentGeneratorControlPanelSchema(Interface):
title=_(u"oo_port_list"),
description=_(u'Port Number(s) of OO.'),
required=False,
default=u(os.getenv('OO_PORT', DEFAULT_OO_PORT))
default=safe_unicode(os.getenv('OO_PORT', DEFAULT_OO_PORT))
)

uno_path = schema.TextLine(
Expand Down

0 comments on commit 24df5b5

Please sign in to comment.