added viewlet that overrides the standard plone commenting viewlet (no tests so far!).

svn path=/plone.app.discussion/trunk/; revision=27045
This commit is contained in:
Timo Stollenwerk
2009-05-22 17:30:52 +00:00
parent afb07e5f0b
commit 895105b2c9
7 changed files with 191 additions and 7 deletions
+8 -7
View File
@@ -1,10 +1,11 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="plone.app.discussion">
<include file="permissions.zcml" />
<include package=".browser" />
<include package=".viewlets" />
<!-- Register the installation GenericSetup extension profile -->
<genericsetup:registerProfile
@@ -15,28 +16,28 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
/>
<!-- Comments -->
<class class=".comment.Comment">
<require interface=".interfaces.IComment" permission="zope2.View" />
<require attributes="Title Creator getId" permission="zope2.View" />
</class>
<utility
component=".comment.CommentFactory"
name="plone.Comment"
/>
<!-- Conversations -->
<class class=".conversation.Conversation">
<require interface=".interfaces.IConversation" permission="zope2.View" />
</class>
<adapter factory=".conversation.conversationAdapterFactory" />
<adapter factory=".conversation.ConversationReplies" />
<adapter factory=".conversation.CommentReplies" />
<!-- Event subscribers -->
<subscriber
for="plone.app.discussion.interfaces.IComment