From a2a17085a3a50250bd5fe1a2012a24059d26728a Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Wed, 15 Dec 2010 23:52:56 +0000 Subject: [PATCH] Nuke trailing white space svn path=/plone.app.discussion/trunk/; revision=46366 --- plone/app/discussion/browser/captcha.py | 4 +- plone/app/discussion/browser/captcha.zcml | 22 +-- plone/app/discussion/browser/comment.py | 10 +- plone/app/discussion/browser/comments.pt | 14 +- plone/app/discussion/browser/comments.py | 94 +++++------ plone/app/discussion/browser/configure.zcml | 4 +- plone/app/discussion/browser/controlpanel.pt | 16 +- plone/app/discussion/browser/controlpanel.py | 38 ++--- plone/app/discussion/browser/migration.py | 44 +++--- plone/app/discussion/browser/moderation.pt | 6 +- plone/app/discussion/browser/moderation.py | 78 ++++----- plone/app/discussion/browser/traversal.py | 12 +- plone/app/discussion/browser/validator.py | 4 +- plone/app/discussion/comment.py | 54 +++---- plone/app/discussion/configure.zcml | 12 +- plone/app/discussion/conversation.py | 2 +- plone/app/discussion/interfaces.py | 8 +- plone/app/discussion/notifications.zcml | 8 +- plone/app/discussion/patches.py | 2 +- .../profiles/default/componentregistry.xml | 2 +- .../comment_review_workflow/definition.xml | 8 +- .../one_state_workflow/definition.xml | 8 +- plone/app/discussion/subscribers.zcml | 10 +- plone/app/discussion/testing.py | 14 +- plone/app/discussion/tests/test_catalog.py | 54 +++---- plone/app/discussion/tests/test_comment.py | 10 +- .../discussion/tests/test_comments_viewlet.py | 148 +++++++++--------- .../app/discussion/tests/test_controlpanel.py | 48 +++--- .../app/discussion/tests/test_conversation.py | 60 +++---- plone/app/discussion/tests/test_functional.py | 10 +- plone/app/discussion/tests/test_indexers.py | 54 ++++--- plone/app/discussion/tests/test_migration.py | 12 +- .../discussion/tests/test_moderation_view.py | 36 ++--- .../discussion/tests/test_notifications.py | 38 ++--- plone/app/discussion/tests/test_tool.py | 4 +- plone/app/discussion/tests/test_workflow.py | 36 ++--- plone/app/discussion/tool.py | 18 +-- plone/app/discussion/vocabularies.py | 10 +- 38 files changed, 507 insertions(+), 505 deletions(-) diff --git a/plone/app/discussion/browser/captcha.py b/plone/app/discussion/browser/captcha.py index ede8fc0..4c5da26 100644 --- a/plone/app/discussion/browser/captcha.py +++ b/plone/app/discussion/browser/captcha.py @@ -39,7 +39,7 @@ Captcha = factory(Captcha) class CaptchaExtender(extensible.FormExtender): """Extends the comment form with a Captcha. This Captcha extender is only - registered when a plugin is installed that provides the + registered when a plugin is installed that provides the "plone.app.discussion-captcha" feature. """ adapts(Interface, IDefaultBrowserLayer, CommentForm) # context, request, form @@ -72,4 +72,4 @@ class CaptchaExtender(extensible.FormExtender): self.form.fields['captcha'].widgetFactory = NorobotsFieldWidget else: self.form.fields['captcha'].mode = interfaces.HIDDEN_MODE - + diff --git a/plone/app/discussion/browser/captcha.zcml b/plone/app/discussion/browser/captcha.zcml index 7ff9e35..8c1f3d3 100644 --- a/plone/app/discussion/browser/captcha.zcml +++ b/plone/app/discussion/browser/captcha.zcml @@ -1,15 +1,15 @@ - @@ -21,11 +21,11 @@ - + /> - - \ No newline at end of file + + diff --git a/plone/app/discussion/browser/comment.py b/plone/app/discussion/browser/comment.py index 2adff65..03ca3a3 100644 --- a/plone/app/discussion/browser/comment.py +++ b/plone/app/discussion/browser/comment.py @@ -5,15 +5,15 @@ from Products.Five.browser import BrowserView class View(BrowserView): """Comment View. - When the view of a comment object is called directly, redirect to the + When the view of a comment object is called directly, redirect to the the page (content object) and the location (HTML-anchor) where the comment has been posted. - + Redirect from the comment object URL "/path/to/object/++conversation++default/123456789" to the content object - where the comment has been posted appended by an HTML anchor that points to + where the comment has been posted appended by an HTML anchor that points to the comment "/path/to/object#comment-123456789". - + Context is the comment object. The parent of the comment object is the conversation. The parent of the conversation is the content object where the comment has been posted. @@ -24,4 +24,4 @@ class View(BrowserView): self.request.response.redirect( aq_parent(aq_parent(context)).absolute_url() + '#' + str(context.id) - ) \ No newline at end of file + ) diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 76ff213..47980f3 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -58,7 +58,7 @@ tal:attributes="src portrait_url; alt reply/Creator" /> - +
Anonymous says: -
8/23/2001 12:40:44 PM
- +
- + - +
- +
- +