remove all the unnecessary acquisition wrapping of conversation (since the conversationAdapterFactory now returns an aq wrapped conversation).

svn path=/plone.app.discussion/trunk/; revision=27501
This commit is contained in:
Timo Stollenwerk
2009-06-18 20:57:47 +00:00
parent 476cc1c5e7
commit 34ee743bf3
8 changed files with 164 additions and 82 deletions
+2 -2
View File
@@ -58,7 +58,8 @@ class CommentsViewlet(ViewletBase):
return getSecurityManager().checkPermission('Manage portal', aq_inner(self.context))
def is_discussion_allowed(self):
conversation = conversationAdapterFactory(self.context)
context = aq_inner(self.context)
conversation = conversationAdapterFactory(context)
return conversation.enabled
def get_replies(self, workflow_actions=False):
@@ -66,7 +67,6 @@ class CommentsViewlet(ViewletBase):
# Acquisition wrap the conversation
context = aq_inner(self.context)
conversation = IConversation(context)
conversation = IConversation(context).__of__(context)
def replies_with_workflow_actions():
# Return dict with workflow actions