Exemple #1
0
 def _create_invitation(self, user, skip_moderation, email_from,
                        email_subject, email_body):
     invitation = RegistrationInvitation(skip_moderation=skip_moderation,
                                         email=user['email'],
                                         first_name=user['first_name'],
                                         last_name=user['last_name'],
                                         affiliation=user['affiliation'])
     self.regform.invitations.append(invitation)
     db.session.flush()
     notify_invitation(invitation, email_subject, email_body, email_from)
Exemple #2
0
 def _create_invitation(self, user, skip_moderation, email_from, email_body):
     invitation = RegistrationInvitation(
         skip_moderation=skip_moderation,
         email=user['email'],
         first_name=user['first_name'],
         last_name=user['last_name'],
         affiliation=user['affiliation']
     )
     self.regform.invitations.append(invitation)
     db.session.flush()
     notify_invitation(invitation, email_body, email_from)