Ignore:
Timestamp:
16 Dec 2011, 07:13:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Seat up a global utility class to ease customization. Transform send_mail function into a utility method.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r7357 r7358  
    4040from waeup.sirp.browser.layout import jsaction, JSAction
    4141from waeup.sirp.interfaces import (
    42     ISIRPObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm)
     42    ISIRPObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm,
     43    ISIRPUtils)
    4344from waeup.sirp.widgets.datewidget import (
    4445    FriendlyDateWidget, FriendlyDateDisplayWidget,
     
    6061from waeup.sirp.applicants.interfaces import IApplicantBaseData
    6162from waeup.sirp.hostels.hostel import NOT_OCCUPIED
    62 from waeup.sirp.utils.helpers import send_mail
    6363
    6464def write_log_message(view, message):
     
    393393        subject = data['subject']
    394394        email_to = self.context.email
    395         success = send_mail(fullname,username,usertype,self.config.name,
     395        sirp_utils = getUtility(ISIRPUtils)
     396        success = sirp_utils.sendMail(fullname,username,usertype,self.config.name,
    396397                  body,email_from,email_to,subject)
    397398        if success:
  • main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py

    r7319 r7358  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """General helper functions for the student section.
     18"""General helper functions and utilities for the student section.
    1919"""
    2020import grok
Note: See TracChangeset for help on using the changeset viewer.