Changeset 533
- Timestamp:
- 09/22/06 09:29:52
- Files:
-
- qPloneComments/branches/plone-2.5/utils.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneComments/branches/plone-2.5/utils.py
r532 r533 26 26 27 27 def manage_mails(reply, context, action): 28 def getEnabledProperties(pp_ps):29 return filter(lambda x: pp_ps.getProperty(x), pp_ps.propertyIds())30 31 28 def sendMails(props, actions, key): 32 29 for p in props: … … 35 32 36 33 prop_sheet = context.portal_properties['qPloneComments'] 37 props = getEnabledProperties(prop_sheet)34 props = filter(lambda x: prop_sheet.getProperty(x), prop_sheet.propertyIds()) 38 35 39 36 actions = { 'onPublish': ('enable_approve_user_notification', … … 72 69 r = reply.inReplyTo() 73 70 return r.meta_type == 'Discussion Item' and r or None 74 75 """76 parent = reply.inReplyTo()77 mt = parent.meta_type78 while mt == 'Discussion Item':79 try:80 parent = parent.inReplyTo()81 mt = parent.meta_type82 except:83 break84 return parent"""85 71 86 72 def getParentOwnerEmail(reply, context):
