2009-05-11 18:52:16 +02:00
|
|
|
<configure
|
|
|
|
xmlns="http://namespaces.zope.org/zope"
|
|
|
|
xmlns:browser="http://namespaces.zope.org/browser"
|
|
|
|
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" />
|
|
|
|
|
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-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"
|
|
|
|
permission="cmf.ManagePortal"
|
|
|
|
/>
|
|
|
|
|
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"
|
|
|
|
permission="cmf.ManagePortal"
|
|
|
|
/>
|
|
|
|
|
2009-06-11 15:51:33 +02:00
|
|
|
<!-- Delete comment view -->
|
|
|
|
<browser:view
|
|
|
|
for="plone.app.discussion.interfaces.IComment"
|
|
|
|
name="moderate-delete-comment"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
2009-06-26 16:57:45 +02:00
|
|
|
class=".moderation.DeleteComment"
|
2009-06-16 15:10:58 +02:00
|
|
|
permission="plone.app.discussion.ReviewComments"
|
2009-06-11 15:51:33 +02:00
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Publish comment view -->
|
|
|
|
<browser:view
|
|
|
|
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
|
|
|
|
name="plone.comments"
|
|
|
|
for="Products.CMFCore.interfaces.IContentish"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
view="plone.app.layout.globals.interfaces.IViewView"
|
|
|
|
manager="plone.app.layout.viewlets.interfaces.IBelowContent"
|
|
|
|
template="comments.pt"
|
|
|
|
class=".comments.CommentsViewlet"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2009-05-27 15:23:25 +02:00
|
|
|
<!-- Comment view -->
|
|
|
|
<browser:view
|
|
|
|
name="view"
|
|
|
|
for="plone.app.discussion.interfaces.IComment"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".comments.View"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Add comment view -->
|
2009-05-25 20:59:25 +02:00
|
|
|
<browser:view
|
|
|
|
name="add-comment"
|
|
|
|
for="plone.app.discussion.interfaces.IConversation"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".comments.AddComment"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
2009-05-27 15:23:25 +02:00
|
|
|
<!-- Reply to comment view -->
|
2009-05-26 21:58:33 +02:00
|
|
|
<browser:view
|
|
|
|
name="reply-to-comment"
|
|
|
|
for="plone.app.discussion.interfaces.IConversation"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".comments.ReplyToComment"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Resource directory for javascripts -->
|
|
|
|
<browser:resourceDirectory
|
|
|
|
name="plone.app.discussion.javascripts"
|
|
|
|
directory="javascripts"
|
|
|
|
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-06-02 23:20:53 +02:00
|
|
|
<browser:page
|
|
|
|
name="discussion-settings"
|
|
|
|
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
|
|
|
class=".controlpanel.DiscussionSettingsControlPanel"
|
|
|
|
permission="cmf.ManagePortal"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Utility view - use in portal_css or similar as portal/@@xdv-check/enabled" -->
|
|
|
|
<browser:page
|
|
|
|
name="discussion-check"
|
|
|
|
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
|
|
|
class=".controlpanel.Utility"
|
|
|
|
permission="zope.Public"
|
|
|
|
allowed_attributes="globally_enabled"
|
|
|
|
/>
|
|
|
|
|
2009-05-11 18:52:16 +02:00
|
|
|
</configure>
|