Changeset 532
- Timestamp:
- 09/22/06 09:26:04
- Files:
-
- qPloneComments/branches/plone-2.5/utils.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneComments/branches/plone-2.5/utils.py
r531 r532 65 65 return context.portal_membership.getMemberById(userid).getProperty('email', '') 66 66 67 def getAdminEmail(context):68 return context.portal_url.getPortalObject().getProperty('email_from_address')69 70 67 def getParent(reply): 71 68 reply = reply.inReplyTo() … … 75 72 r = reply.inReplyTo() 76 73 return r.meta_type == 'Discussion Item' and r or None 74 77 75 """ 78 76 parent = reply.inReplyTo() … … 93 91 return '' 94 92 95 def getOrganizationName(context):96 return getProp(context, 'email_subject_prefix', '')97 98 93 args = {} 99 94 if reply: … … 101 96 reply_parent = getParent(reply) 102 97 103 organization_name = get OrganizationName(context)98 organization_name = getProp(context, 'email_subject_prefix', '') 104 99 creator_name = reply.Creator() 105 admin_email = getAdminEmail(context)100 admin_email = context.portal_url.getPortalObject().getProperty('email_from_address') 106 101 107 102 if state == 'enable_approve_user_notification':
