make comments viewlet show the plone.app.discussion comments and allow to add new comments. (redirection after add-comment is not working yet)

svn path=/plone.app.discussion/trunk/; revision=27112
This commit is contained in:
Timo Stollenwerk
2009-05-25 18:59:25 +00:00
parent 15ba11faa7
commit ad06e9a7e6
3 changed files with 143 additions and 120 deletions
+10 -1
View File
@@ -2,7 +2,7 @@
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="plone.app.discussion">
<!-- Traversal adapter -->
<adapter factory=".traversal.ConversationNamespace" name="conversation" />
@@ -18,4 +18,13 @@
permission="zope2.View"
/>
<!-- add-comment view -->
<browser:view
name="add-comment"
for="plone.app.discussion.interfaces.IConversation"
layer="..interfaces.IDiscussionLayer"
class=".comments.AddComment"
permission="zope2.View"
/>
</configure>