Changeset 3109 in products


Ignore:
Timestamp:
Apr 14, 2011 1:44:23 PM (13 years ago)
Author:
kroman0
Message:

Pylint fixes

Location:
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/browser/comments.py

    r3107 r3109  
    6464 
    6565    def authenticated_report_abuse_enabled(self): 
    66         """ """ 
     66        """ authenticated_report_abuse_enabled """ 
    6767        portal_properties = getToolByName(self.context, 'portal_properties') 
    6868        prop_sheet = portal_properties['qPloneComments'] 
     
    7272 
    7373    def anonymous_report_abuse_enabled(self): 
    74         """ """ 
     74        """ anonymous_report_abuse_enabled """ 
    7575        portal_properties = getToolByName(self.context, 'portal_properties') 
    7676        prop_sheet = portal_properties['qPloneComments'] 
     
    7979 
    8080    def visual_effects_level(self): 
    81         """ """ 
     81        """ visual_effects_level """ 
    8282        portal_properties = getToolByName(self.context, 'portal_properties') 
    8383        prop_sheet = portal_properties['qPloneComments'] 
     
    8686 
    8787    def email_from_address(self): 
    88         """ """ 
     88        """ email_from_address """ 
    8989        portal_url = getToolByName(self.context, 'portal_url') 
    9090        portal = portal_url.getPortalObject() 
     
    9797 
    9898class IQCommentsView(Interface): 
    99     """ 
     99    """ QComments View Interface 
    100100    """ 
    101101 
    102102    def js3(): 
    103         """ 
     103        """ visual_effects = 1 
    104104        """ 
    105105 
    106106    def js4(): 
    107         """ 
     107        """ visual_effects = 0 and popupenabled or visual_effects == 2 
    108108        """ 
    109109 
    110110 
    111111class QCommentsView(BrowserView): 
    112     """ 
     112    """ QComments View 
    113113    """ 
    114114 
    115115    def js3(self): 
    116         """ 
     116        """ visual_effects = 1 
    117117        """ 
    118118        portal_properties = getToolByName(self.context, 'portal_properties') 
     
    122122 
    123123    def js4(self): 
    124         """ 
     124        """ visual_effects = 0 and popupenabled or visual_effects == 2 
    125125        """ 
    126126        portal_properties = getToolByName(self.context, 'portal_properties') 
     
    130130        popupenabled = jstool.getResource('popupforms.js').getEnabled() 
    131131        return value == 0 and popupenabled or value == 2 
     132 
  • quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/tests/testQPloneCommentsConfiglet.py

    r3107 r3109  
    66from Products.CMFCore.utils import getToolByName 
    77from AccessControl.SecurityManagement import noSecurityManager 
    8 from base import FunctionalTestCase 
    9 from config import USERS, PROPERTY_SHEET, DM_USERS_IDS, COMMON_USERS_IDS 
     8from quintagroup.plonecomments.tests.base import FunctionalTestCase 
     9from quintagroup.plonecomments.tests.config import USERS, PROPERTY_SHEET, \ 
     10    DM_USERS_IDS, COMMON_USERS_IDS 
    1011 
    1112 
Note: See TracChangeset for help on using the changeset viewer.