Changeset 532

Show
Ignore:
Timestamp:
09/22/06 09:26:04
Author:
crchemist
Message:

Clean up code.

Files:

Legend:

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

    r531 r532  
    6565            return context.portal_membership.getMemberById(userid).getProperty('email', '') 
    6666 
    67     def getAdminEmail(context): 
    68         return context.portal_url.getPortalObject().getProperty('email_from_address') 
    69  
    7067    def getParent(reply): 
    7168        reply = reply.inReplyTo() 
     
    7572        r = reply.inReplyTo() 
    7673        return r.meta_type == 'Discussion Item' and r or None 
     74 
    7775        """ 
    7876        parent = reply.inReplyTo() 
     
    9391        return '' 
    9492 
    95     def getOrganizationName(context): 
    96         return getProp(context, 'email_subject_prefix', '') 
    97  
    9893    args = {} 
    9994    if reply: 
     
    10196        reply_parent = getParent(reply) 
    10297 
    103     organization_name = getOrganizationName(context
     98    organization_name = getProp(context, 'email_subject_prefix', ''
    10499    creator_name = reply.Creator() 
    105     admin_email = getAdminEmail(context
     100    admin_email = context.portal_url.getPortalObject().getProperty('email_from_address'
    106101 
    107102    if state == 'enable_approve_user_notification':