def send_new_application_mail(self, app): data = { 'username': make_unicode(app.application_data.get('username', '')), 'userid': app.userid, 'appurl': app.absolute_url(), 'basketurl': self.absolute_url() + '/basket_html', } mail_data = new_application_mail.render_email(**data) self.email_sender.sendEmail(mail_data['body_text'], self.admin_mail, self.mail_from, mail_data['subject'])
def send_new_application_mail(self, app): data = { 'username': make_unicode(app.application_data.get('username', '')), 'userid': app.userid, 'appurl': app.absolute_url(), 'basketurl': self.absolute_url() + '/basket_html', } mail_data = new_application_mail.render_email(**data) self.email_sender.sendEmail(mail_data['body_text'], self.admin_mail, self.mail_from, mail_data['subject'])
def get_user_name(self, uid): user = self.get_user(uid) if user: user_name = user.get('cn', '') return make_unicode(user_name)
def get_user_name(self, uid): user = self.get_user(uid) if user: user_name = user.get('cn', '') return make_unicode(user_name)