Move some policy out of the conversation storage adapter into a view,

specifically "enabled()".  Prevents having to replace/migrate
persistent objects to change policy which really only concerns the
context and possibly the request, not the conversation storage. Fixes
#11372.

svn path=/plone.app.discussion/trunk/; revision=48849
This commit is contained in:
Ross Patterson
2011-04-15 04:29:46 +00:00
parent 7354ca4298
commit 3708429a37
8 changed files with 146 additions and 104 deletions
@@ -100,6 +100,15 @@
permission="zope2.View"
/>
<!-- Conversation view -->
<browser:page
name="conversation_view"
for="Products.CMFCore.interfaces.IContentish"
layer="..interfaces.IDiscussionLayer"
class=".conversation.ConversationView"
permission="zope2.View"
/>
<!-- Comment view -->
<browser:view
name="view"