Ignore:
Timestamp:
Apr 14, 2011 6:09:56 PM (11 years ago)
Author:
kroman0
Message:

Pyflakes and pep8 fixes #6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/utils.py

    r3118 r3119  
    44from Products.CMFCore.utils import getToolByName 
    55from Products.CMFPlone.utils import safe_unicode 
     6 
    67 
    78# Get apropriate property from (propery_sheeet) configlet 
     
    1415    return result 
    1516 
     17 
    1618def publishDiscussion(self): 
    1719    roles = ['Anonymous'] 
     
    2022    self._p_changed = 1 
    2123    self.reindexObject() 
     24 
    2225 
    2326def setAnonymCommenting(context, allow=False): 
     
    3538            portal.manage_permission('Reply to item', roles, 1) 
    3639 
     40 
    3741def manage_mails(reply, context, action): 
    3842    def sendMails(props, actions, key): 
     
    7175            sendMails(props, actions, 'onAuthenticatedReportAbuse') 
    7276 
     77 
    7378def getMsg(context, template, args): 
    7479    return getattr(context, template)(**args) 
     80 
    7581 
    7682def allowEmail(context, reply, state, creator): 
     
    7985        condition = condition(reply=reply, state=state, creator=creator) 
    8086    return condition 
     87 
    8188 
    8289def send_email(reply, context, state): 
     
    251258                  'Have you configured an email server for Plone?')) 
    252259 
     260 
    253261def setStatusMsg(state, context, msg): 
    254262    context.plone_utils.addPortalMessage(msg) 
Note: See TracChangeset for help on using the changeset viewer.