From 35d7743b7a48b0fbbacbc45bfcdcbae6d042270a Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Wed, 25 Aug 2010 09:19:28 +0000 Subject: [PATCH] Plain text to HTML transformation added for comment text svn path=/plone.app.discussion/trunk/; revision=38898 --- CHANGES.txt | 3 ++ plone/app/discussion/browser/comments.pt | 2 +- plone/app/discussion/browser/comments.py | 42 ++++++++++++++----- .../discussion/tests/test_comments_viewlet.py | 23 ++++++++++ 4 files changed, 59 insertions(+), 11 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 667d126..9c449cb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,9 @@ Changelog 1.0b7 (unreleased) ------------------ +* Plain text to HTML transformation added for comment text. + [timo] + * Rewrote all tal:condition in comments.pt. The authenticated user has the reply button and the comment form if he has the "Reply to item" permission And the discussion is currently allowed. diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 24ea7f6..688b3ca 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -81,7 +81,7 @@
+ tal:content="structure python:view.cook(reply.getText())" />