Changeset 220

Show
Ignore:
Timestamp:
02/18/09 13:59:32 (9 months ago)
Author:
bettse
Message:

Emails should be sent to the specified project email, not the owner's email. If the project specified a mailing
list, for instance, we should respect that.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • management/bs-admin/trunk/cache_and_sync.py

    r196 r220  
    5757                '--trac-desc=' + str(p.description),  
    5858                '--trac-footer=This project licensed under the ' + str(p.license.name), 
    59                 '--owner-email=' + str(p.owner.email),  
     59                '--owner-email=' + str(p.email),  
    6060                '--owner-username=' + str(p.owner),  
    6161                '--owner-name=' + p.owner.first_name + ' '  + p.owner.last_name,  
  • webmanagement/project_request/views.py

    r191 r220  
    124124                p.save() 
    125125                msg="Your project, " + p.name + ", has been approved.  You will receive an email with a link to it once the environment has been setup. \n\nPlease contact us if you have any problems,\nBeaverSource Admins" 
    126                 send_mail('[Project Approval]  ' + p.short_name, msg, settings.REQUEST_EMAIL, [p.owner.email], fail_silently=False) 
     126                send_mail('[Project Approval]  ' + p.short_name, msg, settings.REQUEST_EMAIL, [p.email], fail_silently=False) 
    127127                 
    128128                msg = "%s %s has approved the %s project." % (u.first_name, u.last_name, p.name) 
     
    163163Sincerely, Beaversource Admin team.  
    164164                        """ 
    165                         send_mail('[Project Rejection]  ' + p.short_name, msg, settings.REQUEST_EMAIL, [p.owner.email], fail_silently=False) 
     165                        send_mail('[Project Rejection]  ' + p.short_name, msg, settings.REQUEST_EMAIL, [p.email], fail_silently=False) 
    166166                         
    167167                        msg = "%s %s has rejected the %s project." % (u.first_name, u.last_name, p.name)