Remove unnecessary variables and imports.

svn path=/plone.app.discussion/trunk/; revision=37773
This commit is contained in:
Timo Stollenwerk 2010-07-13 13:21:12 +00:00
parent 3e625f3677
commit 6ca6f58acd
2 changed files with 1 additions and 9 deletions

View File

@ -105,8 +105,6 @@ class PublishComment(BrowserView):
def __call__(self):
comment = aq_inner(self.context)
comment_id = self.context.id
workflow_action = self.request.form['workflow_action']
portal_workflow = getToolByName(comment, 'portal_workflow')
portal_workflow.doActionFor(comment, workflow_action)
@ -126,8 +124,6 @@ class BulkActionsView(BrowserView):
def __call__(self):
context = aq_inner(self.context)
if self.request.has_key('form.select.BulkAction'):
bulkaction = self.request.get('form.select.BulkAction')

View File

@ -8,11 +8,8 @@ from z3c.form import validator
from z3c.form.interfaces import IValidator
from zope.component import getMultiAdapter, provideAdapter, queryUtility
from zope.component import getMultiAdapter, queryUtility
from zope.schema import ValidationError
from zope.interface import implements, Interface
from zope.schema.interfaces import IField
from zope.component import adapts
@ -21,7 +18,6 @@ from plone.registry.interfaces import IRegistry
from plone.app.discussion.interfaces import ICaptcha
from plone.app.discussion.interfaces import IDiscussionSettings
from plone.app.discussion.interfaces import IDiscussionLayer
from plone.app.discussion.interfaces import MessageFactory as _
try:
from plone.formwidget.captcha.validator import WrongCaptchaCode