Unnecessary imports removed.
svn path=/plone.app.discussion/trunk/; revision=38139
This commit is contained in:
parent
d0f93e6376
commit
0925a63c15
@ -6,18 +6,10 @@ from Products.Five.browser import BrowserView
|
|||||||
|
|
||||||
from Products.CMFCore.utils import getToolByName
|
from Products.CMFCore.utils import getToolByName
|
||||||
|
|
||||||
from Products.CMFPlone import PloneMessageFactory as _
|
|
||||||
|
|
||||||
from Products.statusmessages.interfaces import IStatusMessage
|
|
||||||
|
|
||||||
from Products.CMFCore.interfaces import IContentish
|
|
||||||
|
|
||||||
from Products.CMFCore.interfaces._content import IDiscussionResponse
|
from Products.CMFCore.interfaces._content import IDiscussionResponse
|
||||||
|
|
||||||
import transaction
|
import transaction
|
||||||
|
|
||||||
from zope.component import createObject
|
|
||||||
|
|
||||||
from plone.app.discussion.comment import CommentFactory
|
from plone.app.discussion.comment import CommentFactory
|
||||||
|
|
||||||
from plone.app.discussion.interfaces import IConversation, IReplies, IComment
|
from plone.app.discussion.interfaces import IConversation, IReplies, IComment
|
||||||
@ -44,7 +36,6 @@ class View(BrowserView):
|
|||||||
transaction.begin()
|
transaction.begin()
|
||||||
|
|
||||||
catalog = getToolByName(context, 'portal_catalog')
|
catalog = getToolByName(context, 'portal_catalog')
|
||||||
dtool = context.portal_discussion
|
|
||||||
|
|
||||||
def log(msg):
|
def log(msg):
|
||||||
# encode string before sending it to external world
|
# encode string before sending it to external world
|
||||||
|
Loading…
Reference in New Issue
Block a user