From d70d872f9556d6387486ab4e3ac1ed92e79c1604 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Fri, 3 Jul 2009 06:45:29 +0000 Subject: [PATCH] always show comment in the batch moderation view in reverse chronological order, disallow sorting on the table. svn path=/plone.app.discussion/trunk/; revision=27788 --- plone/app/discussion/browser/moderation.pt | 10 +++++----- plone/app/discussion/browser/moderation.py | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/plone/app/discussion/browser/moderation.pt b/plone/app/discussion/browser/moderation.pt index 64b77f4..60f4df0 100644 --- a/plone/app/discussion/browser/moderation.pt +++ b/plone/app/discussion/browser/moderation.pt @@ -86,11 +86,11 @@ - Commenter - Date - In Response To - Subject - Comment + Commenter + Date + In Response To + Subject + Comment Action diff --git a/plone/app/discussion/browser/moderation.py b/plone/app/discussion/browser/moderation.py index 56a12b9..001e470 100644 --- a/plone/app/discussion/browser/moderation.py +++ b/plone/app/discussion/browser/moderation.py @@ -46,6 +46,7 @@ class View(BrowserView): return catalog( portal_type='Discussion Item', sort_on='created', + sort_order='reverse', sort_limit=self.limit, ) @@ -61,6 +62,7 @@ class View(BrowserView): portal_type='Discussion Item', review_state=self.state, sort_on='created', + sort_order='reverse', sort_limit=self.limit, ) @@ -77,6 +79,7 @@ class View(BrowserView): portal_type='Discussion Item', review_state='published', sort_on='created', + sort_order='reverse', sort_limit=self.limit, )