Ignore:
Timestamp:
Apr 3, 2012 11:40:34 AM (8 years ago)
Author:
potar
Message:

Fixed code according with pylint, pyflakes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_controlpanel.py

    r3402 r3403  
    66 
    77from Products.CMFCore.utils import getToolByName 
    8 from Products.CMFCore.ActionInformation import Action, ActionCategory 
     8from Products.CMFCore.ActionInformation import Action 
    99 
    1010from quintagroup.plonetabs import messageFactory as _ 
     
    7373        # Revert PloneTestCase's optimization 
    7474        # because this breaks our test 
     75        #### pyflakes.scripts.pyflakes, modified: 
     76        ## - return array of warnings instead of printing them 
     77        ## - honour pyflakes:ignore comments 
    7578        def __init__(self, text): 
    7679            self.text = text 
     
    7881                self._v_compiled = getEngine().compile(text) 
    7982        from Products.CMFCore.Expression import Expression 
     83 
    8084        optimized__init__ = Expression.__init__ 
    8185        Expression.__init__ = __init__ 
     
    8690        self.assertEquals(len(errors.keys()), 4, 
    8791            'validateActionFields method is not working properly.') 
     92        #### pyflakes.scripts.pyflakes ends. 
    8893 
    8994    def test_processErrors(self): 
Note: See TracChangeset for help on using the changeset viewer.