Changeset 533

Show
Ignore:
Timestamp:
09/22/06 09:29:52
Author:
crchemist
Message:

Clean up code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneComments/branches/plone-2.5/utils.py

    r532 r533  
    2626 
    2727def manage_mails(reply, context, action): 
    28     def getEnabledProperties(pp_ps): 
    29         return filter(lambda x: pp_ps.getProperty(x), pp_ps.propertyIds()) 
    30  
    3128    def sendMails(props, actions, key): 
    3229        for p in props: 
     
    3532 
    3633    prop_sheet = context.portal_properties['qPloneComments'] 
    37     props = getEnabledProperties(prop_sheet
     34    props = filter(lambda x: prop_sheet.getProperty(x), prop_sheet.propertyIds()
    3835 
    3936    actions = { 'onPublish': ('enable_approve_user_notification', 
     
    7269        r = reply.inReplyTo() 
    7370        return r.meta_type == 'Discussion Item' and r or None 
    74  
    75         """ 
    76         parent = reply.inReplyTo() 
    77         mt = parent.meta_type 
    78         while mt == 'Discussion Item': 
    79             try: 
    80                 parent = parent.inReplyTo() 
    81                 mt = parent.meta_type 
    82             except: 
    83                 break 
    84         return parent""" 
    8571 
    8672    def getParentOwnerEmail(reply, context):