add bulk actions and filter to the moderation view.

move delete- and publish-comment methods from comment.py to moderation.py.

svn path=/plone.app.discussion/trunk/; revision=27670
This commit is contained in:
Timo Stollenwerk
2009-06-26 14:57:45 +00:00
parent 768b2095de
commit 90440cfeca
5 changed files with 152 additions and 89 deletions
+11 -2
View File
@@ -17,12 +17,21 @@
permission="cmf.ManagePortal"
/>
<!-- Moderation bulk actions view -->
<browser:page
for="Products.CMFCore.interfaces.ISiteRoot"
name="bulk-actions"
layer="..interfaces.IDiscussionLayer"
class=".moderation.BulkActionsView"
permission="cmf.ManagePortal"
/>
<!-- Delete comment view -->
<browser:view
for="plone.app.discussion.interfaces.IComment"
name="moderate-delete-comment"
layer="..interfaces.IDiscussionLayer"
class=".comments.DeleteComment"
class=".moderation.DeleteComment"
permission="plone.app.discussion.ReviewComments"
/>
@@ -31,7 +40,7 @@
for="plone.app.discussion.interfaces.IComment"
name="moderate-publish-comment"
layer="..interfaces.IDiscussionLayer"
class=".comments.PublishComment"
class=".moderation.PublishComment"
permission="plone.app.discussion.ReviewComments"
/>