Remove unnecessary variables and imports.
svn path=/plone.app.discussion/trunk/; revision=37773
This commit is contained in:
parent
3e625f3677
commit
6ca6f58acd
@ -105,8 +105,6 @@ class PublishComment(BrowserView):
|
|||||||
def __call__(self):
|
def __call__(self):
|
||||||
|
|
||||||
comment = aq_inner(self.context)
|
comment = aq_inner(self.context)
|
||||||
comment_id = self.context.id
|
|
||||||
|
|
||||||
workflow_action = self.request.form['workflow_action']
|
workflow_action = self.request.form['workflow_action']
|
||||||
portal_workflow = getToolByName(comment, 'portal_workflow')
|
portal_workflow = getToolByName(comment, 'portal_workflow')
|
||||||
portal_workflow.doActionFor(comment, workflow_action)
|
portal_workflow.doActionFor(comment, workflow_action)
|
||||||
@ -126,8 +124,6 @@ class BulkActionsView(BrowserView):
|
|||||||
|
|
||||||
def __call__(self):
|
def __call__(self):
|
||||||
|
|
||||||
context = aq_inner(self.context)
|
|
||||||
|
|
||||||
if self.request.has_key('form.select.BulkAction'):
|
if self.request.has_key('form.select.BulkAction'):
|
||||||
|
|
||||||
bulkaction = self.request.get('form.select.BulkAction')
|
bulkaction = self.request.get('form.select.BulkAction')
|
||||||
|
@ -8,11 +8,8 @@ from z3c.form import validator
|
|||||||
|
|
||||||
from z3c.form.interfaces import IValidator
|
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.schema.interfaces import IField
|
||||||
from zope.component import adapts
|
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 ICaptcha
|
||||||
from plone.app.discussion.interfaces import IDiscussionSettings
|
from plone.app.discussion.interfaces import IDiscussionSettings
|
||||||
from plone.app.discussion.interfaces import IDiscussionLayer
|
from plone.app.discussion.interfaces import IDiscussionLayer
|
||||||
from plone.app.discussion.interfaces import MessageFactory as _
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from plone.formwidget.captcha.validator import WrongCaptchaCode
|
from plone.formwidget.captcha.validator import WrongCaptchaCode
|
||||||
|
Loading…
Reference in New Issue
Block a user