Changeset 7358 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 16 Dec 2011, 07:13:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7335 r7358 50 50 ILocalRolesAssignable, DuplicationError, IConfigurationContainer, 51 51 ISessionConfiguration, ISessionConfigurationAdd, 52 IPasswordValidator, IContactForm )52 IPasswordValidator, IContactForm, ISIRPUtils) 53 53 from waeup.sirp.permissions import get_users_with_local_roles, get_all_roles 54 54 from waeup.sirp.students.catalog import search as searchstudents … … 58 58 from waeup.sirp.widgets.restwidget import ReSTDisplayWidget 59 59 from waeup.sirp.authentication import get_principal_role_manager 60 from waeup.sirp.utils.helpers import get_user_account , send_mail60 from waeup.sirp.utils.helpers import get_user_account 61 61 from waeup.sirp.browser.layout import jsaction, JSAction 62 62 … … 228 228 email_to = self.config.email_admin 229 229 subject = self.config.email_subject 230 success = send_mail(fullname,username,usertype,self.config.name, 231 body,email_from,email_to,subject) 230 sirp_utils = getUtility(ISIRPUtils) 231 success = sirp_utils.sendMail(fullname,username,usertype, 232 self.config.name,body,email_from,email_to,subject) 232 233 if success: 233 234 self.flash('Your message has been sent.') … … 252 253 subject = self.config.email_subject 253 254 usertype = u'Anonymous' 254 success = send_mail(fullname,username,usertype,self.config.name, 255 body,email_from,email_to,subject) 255 sirp_utils = getUtility(ISIRPUtils) 256 success = sirp_utils.sendMail(fullname,username,usertype, 257 self.config.name,body,email_from,email_to,subject) 256 258 if success: 257 259 self.flash('Your message has been sent.') … … 476 478 email_to = self.context.email 477 479 subject = self.config.email_subject 478 success = send_mail(fullname,username,usertype,self.config.name, 479 body,email_from,email_to,subject) 480 sirp_utils = getUtility(ISIRPUtils) 481 success = sirp_utils.sendMail(fullname,username,usertype, 482 self.config.name,body,email_from,email_to,subject) 480 483 if success: 481 484 self.flash('Your message has been sent.')
Note: See TracChangeset for help on using the changeset viewer.