2009-05-11 18:52:16 +02:00
|
|
|
<configure
|
|
|
|
xmlns="http://namespaces.zope.org/zope"
|
|
|
|
xmlns:browser="http://namespaces.zope.org/browser"
|
2010-06-10 16:57:03 +02:00
|
|
|
xmlns:zcml="http://namespaces.zope.org/zcml"
|
2009-05-11 18:52:16 +02:00
|
|
|
i18n_domain="plone.app.discussion">
|
2009-05-25 20:59:25 +02:00
|
|
|
|
2009-06-02 23:20:53 +02:00
|
|
|
<include package="plone.app.registry" />
|
|
|
|
|
2010-06-10 16:57:03 +02:00
|
|
|
<include file="captcha.zcml" />
|
|
|
|
|
2009-05-23 06:55:06 +02:00
|
|
|
<!-- Traversal adapter -->
|
2009-05-23 13:52:57 +02:00
|
|
|
<adapter factory=".traversal.ConversationNamespace" name="conversation" />
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2009-07-07 18:16:58 +02:00
|
|
|
<!-- Migration view -->
|
|
|
|
<browser:page
|
|
|
|
for="Products.CMFCore.interfaces.ISiteRoot"
|
|
|
|
name="comment-migration"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".migration.View"
|
|
|
|
permission="cmf.ManagePortal"
|
|
|
|
/>
|
|
|
|
|
2009-06-10 22:14:44 +02:00
|
|
|
<!-- Moderation view -->
|
|
|
|
<browser:page
|
|
|
|
for="Products.CMFCore.interfaces.ISiteRoot"
|
|
|
|
name="moderate-comments"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".moderation.View"
|
2009-08-26 10:59:50 +02:00
|
|
|
permission="plone.app.discussion.ReviewComments"
|
2009-06-10 22:14:44 +02:00
|
|
|
/>
|
|
|
|
|
2010-01-28 14:23:58 +01:00
|
|
|
<browser:page
|
|
|
|
for="plone.app.layout.navigation.interfaces.INavigationRoot"
|
|
|
|
name="moderate-comments"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".moderation.View"
|
|
|
|
permission="plone.app.discussion.ReviewComments"
|
|
|
|
/>
|
|
|
|
|
2009-06-26 16:57:45 +02:00
|
|
|
<!-- Moderation bulk actions view -->
|
|
|
|
<browser:page
|
|
|
|
for="Products.CMFCore.interfaces.ISiteRoot"
|
|
|
|
name="bulk-actions"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".moderation.BulkActionsView"
|
2009-08-26 10:59:50 +02:00
|
|
|
permission="plone.app.discussion.ReviewComments"
|
2009-06-26 16:57:45 +02:00
|
|
|
/>
|
|
|
|
|
2010-01-28 14:23:58 +01:00
|
|
|
<browser:page
|
|
|
|
for="plone.app.layout.navigation.interfaces.INavigationRoot"
|
|
|
|
name="bulk-actions"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".moderation.BulkActionsView"
|
|
|
|
permission="plone.app.discussion.ReviewComments"
|
|
|
|
/>
|
|
|
|
|
2010-12-08 18:45:11 +01:00
|
|
|
<!-- Moderate comments enabled view -->
|
|
|
|
<browser:page
|
|
|
|
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
|
|
|
name="moderate-comments-enabled"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".moderation.ModerateCommentsEnabled"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<browser:page
|
|
|
|
for="plone.app.layout.navigation.interfaces.INavigationRoot"
|
|
|
|
name="moderate-comments-enabled"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".moderation.ModerateCommentsEnabled"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
2010-12-16 00:52:56 +01:00
|
|
|
|
2013-09-17 14:03:46 +02:00
|
|
|
<!-- Edit comment view -->
|
|
|
|
<browser:page
|
|
|
|
for="plone.app.discussion.interfaces.IComment"
|
|
|
|
name="edit-comment"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".comment.EditComment"
|
|
|
|
permission="plone.app.discussion.EditComments"
|
|
|
|
/>
|
|
|
|
|
2014-08-17 04:48:44 +02:00
|
|
|
<!-- Delete comment views
|
2013-09-19 10:39:52 +02:00
|
|
|
has conditional security dependent on controlpanel settings.
|
|
|
|
-->
|
2009-10-17 15:50:55 +02:00
|
|
|
<browser:page
|
2009-06-11 15:51:33 +02:00
|
|
|
for="plone.app.discussion.interfaces.IComment"
|
|
|
|
name="moderate-delete-comment"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
2009-06-26 16:57:45 +02:00
|
|
|
class=".moderation.DeleteComment"
|
2014-03-03 15:12:16 +01:00
|
|
|
permission="plone.app.discussion.DeleteComments"
|
2009-06-11 15:51:33 +02:00
|
|
|
/>
|
|
|
|
|
2012-05-07 13:02:07 +02:00
|
|
|
<browser:page
|
|
|
|
for="plone.app.discussion.interfaces.IComment"
|
|
|
|
name="delete-own-comment"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".moderation.DeleteOwnComment"
|
|
|
|
permission="plone.app.discussion.DeleteOwnComments"
|
|
|
|
/>
|
|
|
|
|
2009-06-11 15:51:33 +02:00
|
|
|
<!-- Publish comment view -->
|
2009-10-17 15:50:55 +02:00
|
|
|
<browser:page
|
2009-06-11 15:51:33 +02:00
|
|
|
for="plone.app.discussion.interfaces.IComment"
|
|
|
|
name="moderate-publish-comment"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
2009-06-26 16:57:45 +02:00
|
|
|
class=".moderation.PublishComment"
|
2009-06-16 15:10:58 +02:00
|
|
|
permission="plone.app.discussion.ReviewComments"
|
2009-06-11 15:51:33 +02:00
|
|
|
/>
|
|
|
|
|
2009-05-23 06:55:06 +02:00
|
|
|
<!-- Comments viewlet -->
|
|
|
|
<browser:viewlet
|
2010-01-22 18:54:30 +01:00
|
|
|
name="plone.comments"
|
2009-05-23 06:55:06 +02:00
|
|
|
for="Products.CMFCore.interfaces.IContentish"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
manager="plone.app.layout.viewlets.interfaces.IBelowContent"
|
2010-01-22 13:08:30 +01:00
|
|
|
view="plone.app.layout.globals.interfaces.IViewView"
|
2009-05-23 06:55:06 +02:00
|
|
|
class=".comments.CommentsViewlet"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2011-04-15 06:29:46 +02:00
|
|
|
<!-- Conversation view -->
|
|
|
|
<browser:page
|
|
|
|
name="conversation_view"
|
|
|
|
for="Products.CMFCore.interfaces.IContentish"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".conversation.ConversationView"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
2009-05-27 15:23:25 +02:00
|
|
|
<!-- Comment view -->
|
|
|
|
<browser:view
|
|
|
|
name="view"
|
|
|
|
for="plone.app.discussion.interfaces.IComment"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
2010-01-18 10:54:27 +01:00
|
|
|
class=".comment.View"
|
2009-05-27 15:23:25 +02:00
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
2010-01-27 15:54:07 +01:00
|
|
|
<!-- Resource directory for javascripts -->
|
|
|
|
<browser:resourceDirectory
|
|
|
|
name="plone.app.discussion.javascripts"
|
|
|
|
directory="javascripts"
|
2009-05-26 21:58:33 +02:00
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
/>
|
|
|
|
|
2009-05-27 09:25:19 +02:00
|
|
|
<!-- Resource directory for stylesheets -->
|
|
|
|
<browser:resourceDirectory
|
|
|
|
name="plone.app.discussion.stylesheets"
|
|
|
|
directory="stylesheets"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
/>
|
|
|
|
|
2009-08-17 22:31:37 +02:00
|
|
|
<!-- Control panel -->
|
2009-06-02 23:20:53 +02:00
|
|
|
<browser:page
|
|
|
|
name="discussion-settings"
|
|
|
|
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
|
|
|
class=".controlpanel.DiscussionSettingsControlPanel"
|
|
|
|
permission="cmf.ManagePortal"
|
|
|
|
/>
|
|
|
|
|
2010-12-16 00:52:56 +01:00
|
|
|
</configure>
|