[Testbot] Plone 5.0 - Python 2.7 - Build # 3588 - Still failing! - 0 failure(s)
jenkins at plone.org
jenkins at plone.org
Sun Nov 2 07:07:32 UTC 2014
-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 3588 - Still Failing!
-------------------------------------------------------------------------------
http://jenkins.plone.org/job/plone-5.0-python-2.7/3588/
-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------
Repository: plone.app.form
Branch: refs/heads/master
Date: 2014-11-01T16:06:02Z
Author: Manabu TERADA (terapyon) <terada at cmscom.jp>
Commit: https://github.com/plone/plone.app.form/commit/37ad3fcda9aa3f30a4982ce1bb9bb4e316b5c037
Update strings to be unicode strings linke u"string" so it could use unicode languages like japanese.
Files changed:
M plone/app/form/widgets/checkboxwidget.py
diff --git a/plone/app/form/widgets/checkboxwidget.py b/plone/app/form/widgets/checkboxwidget.py
index e00d955..587089d 100644
--- a/plone/app/form/widgets/checkboxwidget.py
+++ b/plone/app/form/widgets/checkboxwidget.py
@@ -24,21 +24,21 @@ def __init__(self, context, request):
def __call__(self):
"""Render the widget to HTML."""
value = self._getFormValue()
- html = "<label for='{0}'>{1}".format(
+ html = u"<label for='{0}'>{1}".format(
self.name,
translate(self.context.title, context=self.request)
)
if self.__required:
# Use the numeric character reference here instead of to make
# our xml-parsing tests happier.
- html += " <span class='required' title='{0}'> </span>".format(
+ html += u" <span class='required' title='{0}'> </span>".format(
translate(_(u'title_required', default='Required'), context=self.request)
)
if self.context.description:
- html += " <span class='formHelp'>{0}</span>".format(
+ html += u" <span class='formHelp'>{0}</span>".format(
translate(self.context.description, context=self.request)
)
- html += "</label>\n"
+ html += u"</label>\n"
if value == 'on':
kw = {'checked': 'checked'}
@@ -46,7 +46,7 @@ def __call__(self):
kw = {}
if self.disabled:
kw['disabled'] = 'disabled'
- return '{0} {1} {2}'.format(
+ return u'{0} {1} {2}'.format(
renderElement(self.tag,
type='hidden',
name=self.name + ".used",
Repository: plone.app.form
Branch: refs/heads/master
Date: 2014-11-01T23:33:11-07:00
Author: David Glick (davisagli) <david at glicksoftware.com>
Commit: https://github.com/plone/plone.app.form/commit/3c9315494e22f56bee40bd2b98edd6202f9364cd
add changelog entry
Files changed:
M CHANGES.rst
diff --git a/CHANGES.rst b/CHANGES.rst
index 8bd51b2..3026f6e 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,7 +4,8 @@ Changelog
2.3.2 (unreleased)
------------------
-- Nothing changed yet.
+- Fix checkbox widget rendering so non-ASCII translations can be used.
+ [terapyon]
2.3.1 (2014-10-23)
-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CHANGES.log
Type: application/octet-stream
Size: 2728 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20141102/32d35785/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 101227 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20141102/32d35785/attachment-0003.obj>
More information about the Testbot
mailing list