From c145378f34d91f49f0f433a6cb1362e62eb887a5 Mon Sep 17 00:00:00 2001 From: Carsten Senger Date: Thu, 20 Aug 2009 02:17:02 +0000 Subject: [PATCH] Allways use an accessor method on the comment, never access the attribute directly as the attribute is not acquisition wrapped and a permission check for the required permission will fail svn path=/plone.app.discussion/trunk/; revision=29205 --- plone/app/discussion/browser/comments.pt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 1d51834..26d7811 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -36,7 +36,7 @@ published python:wtool.getInfoFor(reply, 'review_state') == 'published';" tal:attributes="class python:'comment replyTreeLevel'+str(depth); style string:margin-left: ${depth}em; - id string:${reply/id}" + id string:${reply/getId}" tal:condition="python:canManage or published">
@@ -48,7 +48,7 @@ border="0" width="75" tal:attributes="src portrait_url; - alt reply/creator" /> + alt reply/Creator" /> + alt reply/Creator" />

- Comment title + Comment title

@@ -70,12 +70,12 @@ Poster Name + tal:replace="reply/Creator" /> Anonymous User @@ -84,7 +84,7 @@
+ tal:content="structure reply/getText"> This is the body text of the comment.