Changeset 3124 in products


Ignore:
Timestamp:
Apr 15, 2011 2:30:28 PM (11 years ago)
Author:
vmaksymiv
Message:

pylint fixes

Location:
quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/example.py

    r3121 r3124  
    11from zope.schema import TextLine 
    2 from zope.component import adapts 
    32from zope.interface import Interface, implements 
    43from zope.formlib.form import FormFields 
    5 from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile 
    64from plone.app.form.base import EditForm 
    75 
  • quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/tests/test_doctests.py

    r3121 r3124  
    11import unittest 
    22import doctest 
    3  
    4 from zope.interface import Interface 
    53 
    64from Products.Five import zcml 
     
    119from Testing import ZopeTestCase as ztc 
    1210 
    13 from quintagroup.captcha.core.utils import * 
     11from quintagroup.captcha.core.utils import decrypt, parseKey, getWord 
    1412from quintagroup.captcha.core.tests.base import testPatch 
    1513from quintagroup.captcha.core.tests.testWidget import addTestLayer 
  • quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/tests/test_unittests.py

    r3121 r3124  
    1414from Products.PloneTestCase import PloneTestCase as ptc 
    1515 
    16 from quintagroup.captcha.core.utils import * 
     16from quintagroup.captcha.core.utils import decrypt, parseKey, getWord 
    1717from quintagroup.captcha.core.tests.base import testPatch 
    1818from quintagroup.captcha.core.tests.testWidget import addTestLayer 
     
    113113    def testSubmitWrongCaptcha(self): 
    114114        try: 
    115             res = self.widget._toFieldValue("wrong key") 
     115            self.widget._toFieldValue("wrong key") 
    116116        except ConversionError, e: 
    117117            self.assertEqual(e.doc(), u'Please re-enter validation code.') 
  • quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/widget.py

    r3122 r3124  
    1010from zope.i18n import MessageFactory 
    1111 
    12 from Acquisition import aq_inner 
     12from Acquisition import aq_parent 
    1313 
    1414from Products.CMFCore.utils import getToolByName 
Note: See TracChangeset for help on using the changeset viewer.