Play by the Plone 3.3+ rules and use the INavigationRoot as a base for the moderation views.

svn path=/plone.app.discussion/trunk/; revision=33544
This commit is contained in:
Hanno Schlichting 2010-01-28 13:23:58 +00:00
parent d937bcc42e
commit 9c80b99ead
4 changed files with 19 additions and 3 deletions

View File

@ -4,6 +4,7 @@ Changelog
1.0b3 (XXXX-XX-XX) 1.0b3 (XXXX-XX-XX)
------------------ ------------------
* Play by the Plone 3.3+ rules and use the INavigationRoot as a base for the moderation view. [hannosch]
* Added a commentTitle CSS class to the comment titles. [hannosch] * Added a commentTitle CSS class to the comment titles. [hannosch]
* Update message ids to match their real text. [hannosch] * Update message ids to match their real text. [hannosch]
* Set CSS classes for the comment form in the updateActions method. [timo] * Set CSS classes for the comment form in the updateActions method. [timo]

View File

@ -26,6 +26,14 @@
permission="plone.app.discussion.ReviewComments" permission="plone.app.discussion.ReviewComments"
/> />
<browser:page
for="plone.app.layout.navigation.interfaces.INavigationRoot"
name="moderate-comments"
layer="..interfaces.IDiscussionLayer"
class=".moderation.View"
permission="plone.app.discussion.ReviewComments"
/>
<!-- Moderation bulk actions view --> <!-- Moderation bulk actions view -->
<browser:page <browser:page
for="Products.CMFCore.interfaces.ISiteRoot" for="Products.CMFCore.interfaces.ISiteRoot"
@ -35,6 +43,14 @@
permission="plone.app.discussion.ReviewComments" permission="plone.app.discussion.ReviewComments"
/> />
<browser:page
for="plone.app.layout.navigation.interfaces.INavigationRoot"
name="bulk-actions"
layer="..interfaces.IDiscussionLayer"
class=".moderation.BulkActionsView"
permission="plone.app.discussion.ReviewComments"
/>
<!-- Delete comment view --> <!-- Delete comment view -->
<browser:page <browser:page
for="plone.app.discussion.interfaces.IComment" for="plone.app.discussion.interfaces.IComment"

View File

@ -4,7 +4,7 @@
<object name="review-comments" meta_type="CMF Action" i18n:domain="plone"> <object name="review-comments" meta_type="CMF Action" i18n:domain="plone">
<property name="title" i18n:translate="">Moderate comments</property> <property name="title" i18n:translate="">Moderate comments</property>
<property name="description" i18n:translate=""></property> <property name="description" i18n:translate=""></property>
<property name="url_expr">string:$portal_url/@@moderate-comments</property> <property name="url_expr">string:${globals_view/navigationRootUrl}/@@moderate-comments</property>
<property name="icon_expr"></property> <property name="icon_expr"></property>
<property name="available_expr"></property> <property name="available_expr"></property>
<property name="permissions"> <property name="permissions">

View File

@ -8,11 +8,9 @@ setup(name='plone.app.discussion',
description="Enhanced discussion support for Plone", description="Enhanced discussion support for Plone",
long_description=open("README.txt").read() + "\n" + long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(), open(os.path.join("docs", "HISTORY.txt")).read(),
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[ classifiers=[
"Framework :: Plone", "Framework :: Plone",
"Programming Language :: Python", "Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
], ],
keywords='', keywords='',
author='Timo Stollenwerk', author='Timo Stollenwerk',
@ -27,6 +25,7 @@ setup(name='plone.app.discussion',
'setuptools', 'setuptools',
'collective.autopermission', 'collective.autopermission',
'collective.monkeypatcher', 'collective.monkeypatcher',
'plone.app.layout',
'plone.app.registry', 'plone.app.registry',
'plone.app.z3cform', 'plone.app.z3cform',
'plone.indexer', 'plone.indexer',