From e81e26c02b090da36dd80a7aace69ee39d6e7e99 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Mon, 2 May 2022 17:12:04 +0200 Subject: [PATCH] Removed a few more unicode literals. --- docs/source/howtos/howto_extend_the_comment_form.txt | 4 ++-- .../howto_make_pad_work_with_a_dexterity_content_type.txt | 4 ++-- .../tests/functional_test_comment_review_workflow.txt | 2 +- plone/app/discussion/tests/test_notifications.py | 4 ---- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/source/howtos/howto_extend_the_comment_form.txt b/docs/source/howtos/howto_extend_the_comment_form.txt index 605e0ef..3afaf6a 100644 --- a/docs/source/howtos/howto_extend_the_comment_form.txt +++ b/docs/source/howtos/howto_extend_the_comment_form.txt @@ -58,13 +58,13 @@ comment form with the "website" field:: # Interface to define the fields we want to add to the comment form. class ICommentExtenderFields(Interface): - website = schema.TextLine(title=u"Website", required=False) + website = schema.TextLine(title="Website", required=False) # Persistent class that implements the ICommentExtenderFields interface @adapter(Comment) class CommentExtenderFields(Persistent): interface.implements(ICommentExtenderFields) - website = u"" + website = "" # CommentExtenderFields factory CommentExtenderFactory = factory(CommentExtenderFields) diff --git a/docs/source/howtos/howto_make_pad_work_with_a_dexterity_content_type.txt b/docs/source/howtos/howto_make_pad_work_with_a_dexterity_content_type.txt index b134648..84610b3 100644 --- a/docs/source/howtos/howto_make_pad_work_with_a_dexterity_content_type.txt +++ b/docs/source/howtos/howto_make_pad_work_with_a_dexterity_content_type.txt @@ -20,8 +20,8 @@ configure.zcml:: Define an interface IMyDexterityContentType groked schema, I added:: allowDiscussion = schema.Bool( - title=_(u"Allow Users to Comment"), - description=_(u"Allow users to commemt on you. Comments + title=_("Allow Users to Comment"), + description=_("Allow users to comment on you. Comments are shown at the end of each page"), required=True, default=True, diff --git a/plone/app/discussion/tests/functional_test_comment_review_workflow.txt b/plone/app/discussion/tests/functional_test_comment_review_workflow.txt index 84d384f..099ce9f 100644 --- a/plone/app/discussion/tests/functional_test_comment_review_workflow.txt +++ b/plone/app/discussion/tests/functional_test_comment_review_workflow.txt @@ -252,7 +252,7 @@ Now we can post an anonymous comment. >>> unprivileged_browser.open(urldoc) >>> unprivileged_browser.getControl(name='form.widgets.text').value = "This is an anonymous comment" - >>> unprivileged_browser.getControl(name='form.widgets.author_name').value = u'John' + >>> unprivileged_browser.getControl(name='form.widgets.author_name').value = 'John' >>> unprivileged_browser.getControl(name='form.widgets.author_email').value = 'john@acme.com' >>> unprivileged_browser.getControl(name='form.buttons.comment').click() diff --git a/plone/app/discussion/tests/test_notifications.py b/plone/app/discussion/tests/test_notifications.py index 17e628a..305c90e 100644 --- a/plone/app/discussion/tests/test_notifications.py +++ b/plone/app/discussion/tests/test_notifications.py @@ -77,8 +77,6 @@ class TestUserNotificationUnit(unittest.TestCase): "plone.app.discussion.interfaces.IDiscussionSettings" + ".user_notification_enabled" ] = True - # Archetypes content types store data as utf-8 encoded strings - # The missing u in front of a string is therefor not missing self.portal.doc1.title = "Kölle Alaaf" # What is 'Fasching'? self.conversation = IConversation(self.portal.doc1) @@ -220,8 +218,6 @@ class TestModeratorNotificationUnit(unittest.TestCase): "plone.app.discussion.interfaces.IDiscussionSettings." + "moderator_notification_enabled" ] = True - # Archetypes content types store data as utf-8 encoded strings - # The missing u in front of a string is therefor not missing self.portal.doc1.title = "Kölle Alaaf" # What is 'Fasching'? self.conversation = IConversation(self.portal.doc1)